Skip to content

An extended validator for vraptor to use validations in some order/sequence.

Notifications You must be signed in to change notification settings

felipepedrini/vraptor-sequence-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An extended validator for vraptor to use validations in some order/sequence.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages