Hi,
I want to develop a Model adaptable form SlingHttpServletRequest
“@Model(adaptables={SlingHttpServletRequest.class})”, and inject a parameter
from the slingRequest (RequestParameter getRequestParameter(java.lang.String
name) to a java parameter “@Inject RequestParameter requestParameter;”
hello isabel.
it think this is not possible out-of-the box.
you can inject request attributes, but not request parameters - available
injectors: [1]
but it would by fairly easy to write your own custom injector [2] for this
usecase and register it via OSGi.
stefan
[1]