Opening new JSF windows from the portlet edit page causes the new window to
fail with an error
----------------------------------------------------------------------------------------------
Key: PB-6
URL: http://issues.apache.org/jira/browse/PB-6
Project: Portals Bridges
Type: Bug
Components: jsf
Versions: 0.3
Environment: Windows XP, Tomcat 5.5.9, Jetspeed 2.0-M3, MyFaces 1.09
Reporter: Ronald Holshausen
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]