An extended validator for vraptor to use validations in some order/sequence.
Java
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/br/com/caelum/vraptor/validator
.gitignore
README.markdown
pom.xml

README.markdown

Extended implementation of vraptor validator.

Based on JSR303 spec that uses the groups property in validation annotations + @javax.validation.GroupSequence.

To use just inject the interface SequenceValidator instead of Validator in Controller and use the following method:

validator.validate(Object object, Class<?>... groups);

Here is a brief example how to use it: https://gist.github.com/1007965

Blog post about this project (in portuguese): http://fpedrini.posterous.com/usando-validacoes-com-prioridade-no-vraptor-3