[ 
https://issues.apache.org/jira/browse/MYFACES-3752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799239#comment-13799239
 ] 

Leonardo Uribe commented on MYFACES-3752:
-----------------------------------------

I have finally found a solution for this one. Definitively the problem is 
inside _isLastPhaseInRequest() . It only check redirect flag if the current 
phase is INVOKE_APPLICATION, which sound enough in the context of a 
Post-Redirect-Get pattern. In this case we can take advantage of a side effect 
of redirect, that according to the spec calls responseComplete(). Instead check 
for INVOKE_APPLICATION phase, we can check if getResponseComplete() is true, 
and if that so and it is found the redirect flag, we can be sure that the 
current phase is the last phase. 

> Flash.setKeepMessages(true) does not work with immediate-Commandbutton
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-3752
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3752
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.12
>         Environment: Java 7.0_02, Tomcat 7.0.32
>            Reporter: Martin Maier-Moessner
>         Attachments: jsfTest.zip
>
>
> If you set Flash.setKeepMessages(true) in an action of an 
> immediate-true-button, the messages do not survive the Request-Redirect-Post 
> cycle. If the button is set to immediate="false", setKeepMessages works as 
> advertised.
> I will attach a simple test case that shows this problem.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to