You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Maier (JIRA)" <de...@myfaces.apache.org> on 2013/08/13 17:57:48 UTC
[jira] [Commented] (MYFACES-3752) Flash.setKeepMessages(true) does
not work with immediate-Commandbutton
[ https://issues.apache.org/jira/browse/MYFACES-3752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13738401#comment-13738401 ]
Martin Maier commented on MYFACES-3752:
---------------------------------------
I found out that the problem lies in the implementation of org.apache.myfaces.shared.context.flash.FlashImpl. The method _isLastPhaseInRequest() called by doPostPhaseActions() does not return the correct result. In an immediate-true-button that redirects to another view has APPLY_REQUEST_VALUES as the last phase of the request. In 2.1.12 FlashImpl only RENDER_RESPONSE and INVOKE_APPLICATION are considered last phases.
> 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
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira