Re: Sling Models: ResourcePath annotation with relative path support?

2016-04-21 Thread olimination
Thanks Stefan for your reply! I tried with @ChildResource and it worked like a charm - cool! As far as I understand the @ResourcePath javadoc, you can use this annotation to inject a resource by given path, but not a relative path. On Wed, Apr 20, 2016 at 5:38 PM, Stefan Seifert

RE: Sling Models: ResourcePath annotation with relative path support?

2016-04-20 Thread Stefan Seifert
@ResourcePath injects the resource path (string), not a resource identified by a path. please try the @ChildResource injector with name = child path. https://sling.apache.org/documentation/bundles/models.html#available-injectors stefan >-Original Message- >From: olimination