Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2606

Flash scope not preserved through GET request

    Details

      Description

      Steps to reproduce:

      1. Add the following code to the jsf2-portlet in portletViewMode.xhtml:

      <h:form>
      	<c:set target="#{flash}" property="flash" value="flash" /><br />
      	<h:link outcome="confirmation" value="GET" /><br />
      	<h:commandLink action="confirmation" value="POST (page forward)" /><br />
      	<h:commandLink action="confirmation" value="Ajax-POST (page forward)">
      		<f:ajax />
      	</h:commandLink><br />
      	<h:commandLink action="confirmation?faces-redirect=true" value="POST-redirect-GET" /><br />
      	<h:commandLink action="confirmation?faces-redirect=true" value="Ajax-POST-redirect-GET">
      		<f:ajax />
      	</h:commandLink><br />
      </h:form>
      

      2. Add the following code to the jsf2-portet in confirmation.xhtml:

      flash=#{flash['flash']}
      

      3. Deploy the jsf2-portlet and navigate to it.
      4. Click the GET link.

      If the bug still exists, then the page will display: flash=
      If the bug is fixed, the page will display: flash=flash

      All of these examples work correctly (in other words, they preserve the flash scope) in a webapp, and flash=flash appears correctly on the page.

      Note that both the Ajax and non-Ajax POST-redirect-GET links fail this test as well. The only navigation method that preserves the flash scope correctly is the (Ajax and non-Ajax) POST (page forward) example(s).

      Also note the corresponding button components (h:button and h:commandButton) behave the same.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ui_faces UI Faces
                Reporter:
                kyle.stiemann Kyle Stiemann (Inactive)
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package
                  bridge-impl-4.2.1