From 0d32d4a518ff5ec76e97197d56cedc58a42db696 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Sat, 19 Apr 2008 18:07:28 +0000 Subject: [PATCH] polish --- spring-webflow-reference/src/views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: