Expand my Community achievements bar.

SOLVED

Sling Model: adapt from resource, access request selectors

Avatar

Level 2

Hi all,

In a sling model adapted from a resource, I need to access information on which selectors are present.

Please note that I cannot use adaptables = SlingHttpServletRequest.class since it mus work when adapting from a resource.

I have not found a way to do this, is there one?

I've tried injecting the request, SlingScriptHelper, SlingBindings in many different ways, but I did not get to the request (or the selectors) in any way.

thanks for any help,

Ben

1 Accepted Solution

Avatar

Correct answer by
Employee

Don't this is possible, this is not available on the Resource-API.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Don't this is possible, this is not available on the Resource-API.