Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-213

Portlet 2.0 Bridge: FacesMessages not updated in bridge scope if empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 3.0.0-alpha
    • 2.0.1, 3.0.0-alpha
    • Impl
    • None

    Description

      The Bridge manages FacesMessages in its scope (so Messages generated during an action are carried forward to the render). Unfortunately its impl of saveFacesMessageState only writes the FacesMessages data structure into the scope if there are messages in the current FacesContext. Because the resource code copies forward (merges) all scope attributes that aren't there at the end of the resource request, we are inadvertently copying forward the old set of FacesMessages (rather then the new empty set). Fix is to always put the FacesMessages data structure into the scope even if its empty.

      Attachments

        Activity

          People

            mike_freedman Michael Freedman
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: