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

Flash scope not preserved during redirect

    Details

      Description

      Steps to Reproduce:

      1. Modify applicant.xhtml in the jsf-applicant-portlet demo and remove the <f:ajax ...> line (on or about line 101):

      applicant.xhtml
      <h:commandButton action="#{applicantBackingBean.submit}" value="#{i18n['submit']}">
      	<f:ajax execute="@form" render="@form" /> <!-- REMOVE THIS LINE -->
      </h:commandButton>
      

      2. Modify faces-config.xml by adding a <redirect/> element to the navigation-case:

      faces-config.xml
      <navigation-case>
      	<from-outcome>success</from-outcome>
      	<to-view-id>/WEB-INF/views/confirmation.xhtml</to-view-id>
      	<redirect/> <!-- ADD THIS LINE -->
      </navigation-case>
      

      3. Deploy the jsf-applicant-portlet to Liferay Portal 7.0

      4. Add the jsf-applicant-portlet to a portal page

      5. Complete the form (using the first name "John") and click on the Submit button

      Expected Results

      The portlet displays "Dear John, Thank you ..."

      Actual Results

      The portlet displays "Dear , Thank you ..."

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package
                  bridge-impl-4.2.1