Hi,

I'm using Sling Models (cool stuff, thanks for that!) and would like to get
a resource relative to the current rendered resource. Actually I want to
get an InputStream from a nt:file node and so I thought to make this with
the ResourcePath annotation with a relative path.

Something like:

@ResourcePath(path = "mynode/jcr:content")
private InputStream myfile;

but this seems not to be supported or maybe I missed some documentation how
to do it?

Alternatively I can use @Self and the navigate and adapt it to an
InputStream.

But I thought maybe there is a possibility to use the @ResourcePath
annotation with a relative path.


Thanks for help!
Oli

Reply via email to