diff --git a/spring-webflow-reference/src/views.xml b/spring-webflow-reference/src/views.xml index 24467850..f73fc2d3 100644 --- a/spring-webflow-reference/src/views.xml +++ b/spring-webflow-reference/src/views.xml @@ -194,7 +194,7 @@ Implementing a model validate method The first way is to define a validate method on the model object class. - To do this, create a public method with the name validate, where state is the id of the view-state. + To do this, create a public method with the name 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: @@ -215,7 +215,7 @@ public void validateEnterBookingDetails(MessageContext context) { Implementing a Validator The second way is to define a separate object, called a Validator, which validates your model object. - To do this, create a class that defines a public method with the name validate, where state is the id of the view-state. + To do this, create a class that defines a public method with the name validate${state}, where state is the id of your view-state. The method must declare a Object parameter to accept your model object, and a MessageContext parameter for recording validation error messages. For example: