|
Featured downloads:
gwt-validation-1.0.1b.jar gwt-validation-1.0.1c.jar gwt-validation-1.0.jar Show all » |
|
Featured wiki pages:
ConceptOfOperations Requirements Roadmap TestPlan Show all » |
This project began as a response to this issue in the GWT issue tracker.
Currently this project is written in code compatible to Java5 but should also be compatible with Java6 to provide the widest range of support.
The purpose is to provide an annotation based solution to both client side and server side validation.
We aim to be mostly compliant to the JSR-303 standard where it has relevance to GWT.
Currently the library supports the following:
- Annotation based field/method validation.
- Annotations from superclasses and implemented interfaces.
- Group based selection of methods.
- Validation on whole objects or single properties. (Client side and Server side)
- Facilitates writing custom validators.
- Class level validation.
- Object graph validation through the @Valid annotation.
- Groups fully working with "default" grouping and such.
- @GroupSequence annotation.
- InvalidConstraint is as JSR-303 compliant as it is likely to get
The following is in progress:
- Validate a possible value on a given field. validateValue()
- Message interpolation and i8n.
- Simple access to metadata (probably server-side only).
For further information on features see the development roadmap.
For more on how this works see the Concept of Operations.
Instructions: To use this in your project you'll need to add (along with the jar on your classpath) to your module xml file:
<inherits name="com.google.gwt.validation.Validation"></inherits>
Building:
See how to build from source if you're interested in modifying and contributing.