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

PortletViewHandler should create a PortletUIViewRoot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.1
    • jsf
    • None
    • Sun JSF Reference Implementation version 1.2 (jsf-impl.jar)
      Websphere portlet container version 6.1.0
      Apache MyFaces JSF portal bridge version 1.0.1 (portals-bridges-jsf-1.0.jar)

    Description

      I found a bug in the PortletViewHandlerImpl.createView() and restoreView() methods. The createView() method creates a UIViewRoot. UIViewRoot is not a NamingContainer and does not make unique client ids for the portal environment.

      The PortletViewHandlerImpl is ONLY used in the portal environment and should create PortletUIViewRoot objects instead of a UIViewRoot objects.

      The Portals Bridges bug PB-35 ( http://issues.apache.org/jira/browse/PB-35 ) addressed a namespacing problem with the jsf portals bridge. Multiple classes were changed to create a PortletUIViewRoot to fix the namespacing problem. The PortletViewHandlerImpl class must have been missed when converting the bridge to use PortletUIViewRoot.

      I have included a code example on how to fix this problem. Please see the latest attached file.

      Attachments

        1. PortletViewHandlerImpl.java
          6 kB
          Matthew Bruzek
        2. PortletViewHandlerImpl.java
          5 kB
          Matthew Bruzek
        3. PortletViewHandlerImpl.java
          5 kB
          Matthew Bruzek

        Activity

          People

            taylor David Sean Taylor
            mbruzek Matthew Bruzek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: