Retrieving the 'SlingHttpServletRequest request' from a parent node.
Hi Community!
For some reasons I need to retrieve the 'SlingHttpServletRequest request' from a parent node and I'm not be able to do it, I have already the request from the actual node but I'm passing on HTL an wcmmode='disabled' fixed value, this is why I'm going to need the parent request, sample code here:
Resource resource = request.getResource();
Resource parent = resource.getParent();
SlingHttpServletRequest requestParent = parent.adaptTo(SlingHttpServletRequest.class);
This is how I'm trying on the constructor on my class, but always I retrieve null as requestParent value.
I'll appreciate any suggestions on this, thanks in advance.
AEM6.2