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

Cumulative patch for better storing the ViewRoot, disabling calling restoreState on the ViewRoot, and better SessionMap/RequestParameterMap/ApplicationMap handling in the servlet case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 1.0
    • None
    • jsf
    • None

    Description

      This patch tries to resolve three issues with the current bridge. It has been created by Thomas Spiegl, Bernhard Huemer and me (just to do the honours .

      1) The UIViewRoot is directly put into the session - this doesn't fly if load-balancing is switched on and the session is serialized between servers, as no JSF-component is serializable (instead, it implements state-holder, and one has to call the appropriate methods restoreState/saveState, and additionally save the tree-structure.

      2) In the FacesPortlet, a superfluous call to restoreState is happening - if the UIViewRoot is properly restored, restoreState should not be called anymore

      3) the SessionMap/RequestParameterMap etc. will only work if behind a portlet. In some cases, the JSF-app might run both behind a portlet and a servlet

      regards,

      Martin

      Attachments

        1. jsf-portlet-bridge.patch
          29 kB
          Martin Marinschek

        Activity

          People

            taylor David Sean Taylor
            mmarinschek Martin Marinschek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: