Details
-
Question
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-alpha
-
None
-
None
Description
This seems like an impossible thing to do if there is no other PortletFacesContext implementations available. Is it really correct to try and lookup another FacesContext if we are in a portlet environment?
// if in portlet environment – do a portlet container neutral test
// first in case we are packaged in a web app that isn't deployed
// on a portlet container/as a portlet. Note: can't use the BridgeUtil
// method as that call requires the facesContext to exist.
FacesContext fc = getWrapped().getFacesContext(context, request, response, lifecycle);
if(ExternalContextUtils.isPortlet(fc.getExternalContext()))
{ fc = new FacesContextImpl(fc); }return fc;
regards,
Hampus