[ https://issues.apache.org/jira/browse/MYFACES-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799253#comment-13799253 ]
Leonardo Uribe commented on MYFACES-3606: ----------------------------------------- Thanks for the example, it has been helpful. > Flash scope looses values on redirect when immediate=true > --------------------------------------------------------- > > Key: MYFACES-3606 > URL: https://issues.apache.org/jira/browse/MYFACES-3606 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Affects Versions: 2.1.8 > Environment: JDK 1.6, Tomcat 7, JSF 2.1.8 > Reporter: Luis Roche > Assignee: Leonardo Uribe > Attachments: MyFaces.zip > > > 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 -- This message was sent by Atlassian JIRA (v6.1#6144)