Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1018

PhaseListener That Persists Messages After Redirects

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • General
    • None

    Description

      Currently when JSFMessages are added to the FacesContext those messages are lost when a redirect is issued. This is a problem for a handler that does some validation that adds messages and then returns a navigation case that has a redirect.

      A PhaseListener can be written that will persist the current JSFMessages in the user's session and then reloads them into the FacesContext on the next request. Since the application will almost never want to add messages to the context and have them immediately be lost, the presence of this listener would help ensure that the message manager matches the expected result.

      Attachments

        1. JsfMessagePhaseListener.txt
          6 kB
          Dustin Bruzenak

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dbruzenak Dustin Bruzenak
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: