;>>>>> Roy
>>>>>>>> On 6 Jun 2017, at 21:50, Roy Teeuwen <r...@teeuwen.be> wrote:
>>>>>>>>
>>>>>>>> Hey Jason,
>>>>>>>>
>>>>>>>> No to b
ve
>>>>> to do @Model(adaptables = JcrNodeResource.class), the decorator just
>>>>> decorates your resource implementation class, has nothing to do with
>> your
>>>>> Resource interface you are coming from.
>>>>>>
&g
..@sas.com> wrote:
>>>>>
>>>>> Hey Roy,
>>>>>
>>>>> Couple of Assumptions:
>>>>>
>>>>> For the Self resource you have it defined as:
>>>>>
>>>>> @Self
>>>>> public Re
the Self resource you have it defined as:
>> >>
>> >> @Self
>> >> public Resource resource;
>> >>
>> >> and for the @Model you have something like
>> >> @Model(adaptables = RoysCustomDecorator.class)
>> >>
>> @Model(adaptables = RoysCustomDecorator.class)
> >>
> >> Am I close?
> >>
> >> -Jason
> >>
> >> -Original Message-
> >> From: Roy Teeuwen [mailto:r...@teeuwen.be]
> >> Sent: Tuesday, June 06, 2017 10:08 AM
> >>
Am I close?
>>
>> -Jason
>>
>> -Original Message-
>> From: Roy Teeuwen [mailto:r...@teeuwen.be]
>> Sent: Tuesday, June 06, 2017 10:08 AM
>> To: users@sling.apache.org
>> Subject: Sling models - Resource decorator
>>
>> He
uwen [mailto:r...@teeuwen.be]
> Sent: Tuesday, June 06, 2017 10:08 AM
> To: users@sling.apache.org
> Subject: Sling models - Resource decorator
>
> Hey all,
>
> I am using sling models version 1.2.2, and I have the following logic:
>
> - I find some resour
]
Sent: Tuesday, June 06, 2017 10:08 AM
To: users@sling.apache.org
Subject: Sling models - Resource decorator
Hey all,
I am using sling models version 1.2.2, and I have the following logic:
- I find some resources with the resource resolver
(resourceResolver.findResources)
- The returned resources
Hey all,
I am using sling models version 1.2.2, and I have the following logic:
- I find some resources with the resource resolver
(resourceResolver.findResources)
- The returned resources are the correct resources which are decorated by my
custom resource decorator
- I iterate the list to