Fix for bean validation messages in BindingResult
Previously Web Flow's BindingResult implementation distinguished object from field-level errors by checking if the source of the error is null or otherwise a String. However, class-level bean validation errors have a field source represented by an empty String. After this change object and field-level errors are recognized by checking for String-based field source that is neither null nor empty. This commit also contains a fix for spring-faces tests where in JSF 2.1 the presence of an unreleased FacesContext may cause some tests to fail.
This commit is contained in:
@@ -5,8 +5,8 @@ http://www.springframework.org/webflow
|
||||
Changes in version 2.3.1.RELEASE
|
||||
-----------------------------------------------
|
||||
Upgrade JSF Mojarra version to 2.1.7
|
||||
Improve Jsf2FlowFacesContext.isValidationFailed() to check Web Flow's MessageContext for errors
|
||||
|
||||
Modify Jsf2FlowFacesContext.isValidationFailed() to check Web Flow's MessageContext for errors
|
||||
Recognize class-level bean validation messages in BindingResult.getGlobalErrors()
|
||||
|
||||
Changes in version 2.3.0.RELEASE (Feb 28, 2011)
|
||||
-----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user