Revision: 10657
Author: ncha...@google.com
Date: Mon Sep 19 20:31:06 2011
Log: Edited wiki page BeanValidation through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=10657
Modified:
/wiki/BeanValidation.wiki
=======================================
--- /wiki/BeanValidation.wiki Mon May 9 12:10:10 2011
+++ /wiki/BeanValidation.wiki Mon Sep 19 20:31:06 2011
@@ -21,14 +21,14 @@
}}}
Use the standard validation bootstrap to get a Validator on the client and
validate your object
-(see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/com/google/gwt/sample/validation/client/ValidationView.java
ValidationView.java])
+(see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/main/java/com/google/gwt/sample/validation/client/ValidationView.java
ValidationView.java])
{{{
Validator validator =
Validation.buildDefaultValidatorFactory().getValidator();
Set<ConstraintViolation<Person>> violations = validator.validate(person);
}}}
-Follow this pattern to create a Validator for the objects you want to
validate on the client. (see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/com/google/gwt/sample/validation/client/SampleValidatorFactory.java
SampleValidatorFactory.java])
+Follow this pattern to create a Validator for the objects you want to
validate on the client. (see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/main/java/com/google/gwt/sample/validation/client/SampleValidatorFactory.java
SampleValidatorFactory.java])
{{{
public final class SampleValidatorFactory extends
AbstractGwtValidatorFactory {
@@ -51,7 +51,7 @@
Include the module for your Validation Provider.
Add _replace-with_ tag in your gwt modle file telling GWT to use the
Validator you just defined
-(see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml
Validation.gwt.xml])
+(see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/main/java/com/google/gwt/sample/validation/Validation.gwt.xml
Validation.gwt.xml])
{{{
<inherits name="org.hibernate.validator.HibernateValidator" />
@@ -64,7 +64,7 @@
= Best Practices =
* Use Groups to specify what constraints to run on the client
- * Super source Validator that are not GWT compatible
using !NotGwtCompatibleValidator (see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/org/hibernate/validator/super/org/hibernate/validator/constraints/impl/FutureValidatorForCalendar.java
FutureValidatorForCalendar.java])
+ * Super source Validator that are not GWT compatible
using !NotGwtCompatibleValidator (see
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/main/java/org/hibernate/validator/super/org/hibernate/validator/constraints/impl/FutureValidatorForCalendar.java
FutureValidatorForCalendar.java])
*
= What is not supported =
* XML configuration
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors