Hi
I'm trying to get Declarative Hyperlinking to work
(
http://jersey.java.net/nonav/documentation/latest/linking.html)
Short question: the documentation says you can bind instance, entity or
resource properties with EL expressions. What properties are available
on the resource bean?
Long question:
If I use the resource paramater for the
@Ref(resource=xxxResource.class) the field is automatically generated
with /{context}/{path}
However if I use @Ref("${instance.id}") the context is prepended but
the path is missing. So for example if my resource has @Path("widgets")
the field only has /myContext/3 instead of /myContext/widgest/3. I want
to somehow say @Ref(resource=xxxResource.class, value="${instance.id}")
and for it to prepedn the resource path to the value. Or alternatively
if I could reference the path with an EL expersion e.g.
@Ref("${resource.path}/${instance.id}")
Cheers