Hi Arun, I tried the CustomScreenFilter but it seems not "installed".
what I did is first put it in core project, and then build /
autoInstallPackage it into AEM. But I cannot find it from aem console.
and when I put breakpoint into CustomScreenFilter it didn't stop as
well. Did I miss something? Would filter need extra config ?
Hi Cal,I already have another component under structure with name page
which has a completely different Sling:resourceSuperTypeSo I have
created this component directly under components folder.Can you please
try and let me know if your are able to do the same with this use case,
because i have tried few tricks but it is not reflecting still.Thanks
for your response.Regards,Naziya
The handling and injection of of OSGI properties, including the correct
matching of runmodes should be left the framework. And from my point of
view there is never a reason to bypass this. If you do, you are
violating AEM best practices.And if you really need to read the
configuration for other environments (because otherwise the framework
would it inject for you), something is wrong. Most likely you are using
OSGI properties for a purpose they are not intended for.Jörg
I found the solution.Basically, i wanted to use the sling request with
Model, I had set values in my model based ont he particular request ,
which i did using this. @SlingObject private SlingHttpServletRequest
request; and initailzed my values in @PostConstruct protected void
init() method based on requests.
I guess, that it's possible, but I am not aware of any integration which
is opensourced. On the other hand, it wouldn't be that hard to implement
some custom Injectors to make the content of the HttpSession easily
accessible within a sling model.