Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-6

Opening new JSF windows from the portlet edit page causes the new window to fail with an error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.3
    • None
    • jsf
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            uglyog Ronald Holshausen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: