JSF view root to survive redirect in same state

For JSF 2.0.x Spring Web Flow the view root could not be preserved
across redirects in the same state (e.g. following validation)
because a JSF state saving listener held on to the FacesContext,
which Web Flow releases before the redirect.

This issue was addressed in JSF 2.1
http://java.net/jira/browse/JAVASERVERFACES-1604
which means we can allow the view root to survive the redirect.

Note that the behavior can also be controlled with the
redirect-in-same state flow execution attribute.

Issues: SWF-1502
This commit is contained in:
Rossen Stoyanchev
2012-02-29 15:36:14 -05:00
parent 63151acb8d
commit 8e1aa91b40
2 changed files with 3 additions and 12 deletions

View File

@@ -8,6 +8,7 @@ Upgrade JSF Mojarra version to 2.1.7
Modify Jsf2FlowFacesContext.isValidationFailed() to check Web Flow's MessageContext for errors
Recognize class-level bean validation messages in BindingResult.getGlobalErrors()
Fix "embedded" mode to be flow session local, i.e. specific to a specific flow or subflow.
Allow JSF view root to survive redirect in same state (following fix in JSF Mojarra 2.1)
Changes in version 2.3.0.RELEASE (Feb 28, 2011)
-----------------------------------------------