|
From: Thomas V. de V. <tho...@ac...> - 2005-09-12 12:34:30
|
I am wondering if it'd make sense to have the validation rules defined as= =20 annotations.=20 e.g. @RequiredField @EmailAddress I've worked with forms that contains 2 000 + fields and maintaining externa= l=20 XML files is really cumbersome in such a case? Any thoughts, pros/cons? Cheers, Thomas On 9/12/05, Paul Sundling <tk...@tk...> wrote: >=20 > I'll definitely investigate Valang in depth. Thanks. Just the > existence of some documentation puts it ahead of the commons validator > integration support in Spring modules. :) >=20 > Valang looks pretty powerful, although it's still missing some basic > functionality like email, credit card validation. Perhaps that sort of > stuff probably belongs more in the ValidatorUtils since Valang seems to > be a general purpose tool. Regular expressions were alluded to > (customizing date parser), but I didn't see them specifically listed. >=20 > At some point I hope a validation framework gets integrated into Spring > MVC. >=20 > Thanks again. I'll go into lurker mode now. :) >=20 > Paul Sundling >=20 >=20 > On Mon, 2005-09-12 at 14:32 +1000, Oliver Hutchison wrote: > > > > Hi Paul, > > > > > > > > Have you looked at Valang already? > > > > > > > > > > > http://opensource2.atlassian.com/confluence/spring/display/MODULES/Us= i > > > > ng+Valang+validator > > > > > > > > It's a declarative validation language that has some powerful > > > > constructs and its feature set is growing. It's build on top of > > > > Spring's validation package. It currently isn't released > > > yet but the > > > > code is stable and a lot of people use it in production. > > > > > > I can second this recommendation. For one, Valang is much > > > easier to read than the commons-validator XML file. > > > > I'm also using Valang in production and love it. The only reason I can > > see why you'd want to use commons-validator is for the automatic > > JavaScript validation support but within the week I hope to make the > > code for my Valang to JavaScript translator available which will allow > > you to have your server side Valang rules automatically translated into > > client side JavaScript. > > > > Ollie > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= =20 > QA > > Security * Process Improvement & Measurement *=20 > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |