Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.3
-
None
-
None
-
Windows XP, Tomcat 5.5.9, Jetspeed 2.0-M3, MyFaces 1.09
Description
I have included a button on the porlet edit page that opens a new JSF window via window.open javascript. The window opens but failed to render with an 'Unsupported context type ' error.
Class file: org.apache.portals.bridges.jsf.FacesContextFactoryImpl
Line: 58
Looking at the code for FacesContextFactoryImpl, I see that it only accepts context objects of type PortletConfig, but the popup window recieves a ServletContext instead as it is running outside the portlet enviroment.
As a temporary work around, I modified FacesContextFactoryImpl based on the FacesContextFactoryImpl from myfaces, which checks for both a PortletConfig and ServletContext, and added myfaces as a dependancy. This compiles and works fine.