Sling Model: adapt from resource, access request selectors | Community
Skip to main content
Level 2
January 25, 2017
Solved

Sling Model: adapt from resource, access request selectors

  • January 25, 2017
  • 1 reply
  • 1112 views

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.
Best answer by Feike_Visser1

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
January 25, 2017

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