[ 
http://issues.apache.org/jira/browse/MYFACES-403?page=comments#action_12356967 
] 

Mike Kienenberger commented on MYFACES-403:
-------------------------------------------

As Mario points out, keeping saveState values is something else we'd like to 
see persisted across a redirect.   You'd have to pull them out of the component 
tree save state somehow, though, then reinject them.

MYFACES-516 is really an expanded duplicate of this issue.

> Use a PhaseListener to reinject FacesMessages lost during a redirection to 
> the JSF context
> ------------------------------------------------------------------------------------------
>
>          Key: MYFACES-403
>          URL: http://issues.apache.org/jira/browse/MYFACES-403
>      Project: MyFaces
>         Type: Improvement
>   Components: General
>  Environment: N/A
>     Reporter: Enrique Medina Montenegro
>     Assignee: Martin Marinschek
>     Priority: Trivial
>  Attachments: FacesMessageListener.java
>
> When using redirection to navigate from one JSF view to another, e.g., to 
> implement the PRG (Post-Redirect-Get) pattern, all the FacesMessage objects 
> are lost, so the destination view is not able to show any messages created 
> from the originating view.
> The idea is to temporarily save a copy of the messages in a storage that will 
> survive to the redirection, and then reinject those messages to the JSF 
> context before rendering the destination view.
> Attached I have provided with a simple but effective way to achieve this 
> behaviour.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to