Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for declarative validation (Hibernate Validator, anticipating JSR 303) [SPR-69] #4803
Support for defining validation rules on beans via source markup.
Support for declarative assignment of PropertyValidationRules to bean properties via Spring-IoC, through a scripting environment such as Groovy/Beanshell, or programatically in plain Java.
Affects: 1.2 RC1
14 votes, 13 watchers
Matthew Payne commented
Would love to see something done here.
It would be nice to have a light weight/plugable validator.
I frequently see the need to validate an ramdom object against some type of declartive(xml?) setting.
For some favor XWork's (http://opensymphony.com/) validator is very nice to work with.
Rob Harrop commented
I have moved this into the timeframe of 2.1 but it is definitely on the radar. AleksS and I have been working on a Java/.NET expression language that can then be used as the basis of a validation language (which Aleks has already prototyped for .NET). StevenD has been doing some interesting work on Valang and JanM is doing some interesting work in the rules area so there is certainly a lot to go at here.