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

Flash scope looses values on redirect when immediate=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1.8
    • None
    • JSR-314
    • None
    • JDK 1.6, Tomcat 7, JSF 2.1.8

    Description

      I have the following button:

      <h:commandButton immediate="true" value="immediate_true" action="#

      {testBean.actionTest}

      "></h:commandButton>

      As part of the testBean.actionTest, I am adding a message to Flash Scope.

      public String actionTest()

      { FacesContext.getCurrentInstance().getExternalContext().getFlash().put("infoMessage","TEST IMMEDIATE"); return "page2?faces-redirect=true"; }

      I do not see the flash message displayed on the next screen when I press the command button. I will
      see the message if immediate is set to false.

      This works fine with Mojarra 2.1.12

      Attachments

        1. MyFaces.zip
          6.31 MB
          Luis Roche

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              luisroche Luis Roche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: