Is it somehow possible to accesse a sesssion-scoped bean in a class extending the GenericFacesPortlet
?
Is a portlet even aware of the FacesContext
?
What do I want to achieve?
I want to serve a file through the serveResource()
method. The file's content should be retrieved from a bean implementing the method getResourceContent()
.
But unfortunately, I'm getting null
when calling FacesContext.getCurrentInstance()
.
For your information: I'm using the JBoss Portlet Bridge in Version 2.1.0.FINAL.