From af1c507f93151c811297a265c3d2cb62c95880da Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Mon, 14 Sep 2009 22:40:44 +0000 Subject: [PATCH] polish --- spring-framework-reference/src/validation.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml index 701d96794c9..b76eded94b7 100644 --- a/spring-framework-reference/src/validation.xml +++ b/spring-framework-reference/src/validation.xml @@ -1406,7 +1406,7 @@ public class MyController { - The @Valid annotation is part of the standard JSR-303 Bean Validation API, and not a Spring-specific construct. + The @Valid annotation is part of the standard JSR-303 Bean Validation API, and is not a Spring-specific construct. @@ -1414,7 +1414,7 @@ public class MyController { Configuring a Validator for use by Spring MVC The Validator instance invoked when a @Valid method argument is encountered may be configured in two ways. - First, you may call binder.setValidator(Validator) within a @Controller's @InitBinder callback method. + First, you may call binder.setValidator(Validator) within a @Controller's @InitBinder callback. This allows you to configure a Validator instance per @Controller class: javax.validation.Validator implementation is generic. A single instance typically coordinates the validation of all application objects that declare validation constraints. To configure such a general purpose Validator for use by Spring MVC, simply inject a LocalValidatorFactoryBean reference into the WebBindingInitializer. - LocalValidatorFactoryBean already implements org.springframework.validation.Validator, and delegates to the JSR-303 provider underneath. + LocalValidatorFactoryBean already implements org.springframework.validation.Validator, delegating to the JSR-303 provider underneath. A full configuration example showing injection of a JSR-303 backed Validator into Spring MVC is shown below: