Skip to main content
Level 2
Jan 25, 2017 8:11 AM UTC
Solved

Sling Model: adapt from resource, access request selectors

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Feike_Visser1
Feike_Visser1Accepted solution
Adobe Employee
Jan 25, 2017 11:16 AM UTC

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

1 reply

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
Jan 25, 2017 11:16 AM UTC

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

Translate