diff --git a/spring-webflow-reference/src/views.xml b/spring-webflow-reference/src/views.xml index 432392f8..fdc5b3d6 100644 --- a/spring-webflow-reference/src/views.xml +++ b/spring-webflow-reference/src/views.xml @@ -326,24 +326,30 @@ public class StringToMonetaryAmount extends StringToObject {
ValidationContext parameter for recording validation error messages in addition to the current Principal and user event that triggered validation.
+ The user event is the same value that matches against the 'on' attribute of a transition.
+ MessageContext was required instead of a ValidationContext.
+ This style validator is still supported, however, the ValidationContext provides access to the MessageContext and additional information.
validate${state}, where state is the id of your view-state.
- The method must declare a MessageContext parameter for recording validation error messages.
For example:
validate${state}, where state is the id of your view-state.
- The method must declare a parameter to accept your model object, and a MessageContext parameter for recording validation error messages.
For example: