|
From: Thierry T. <te...@ya...> - 2005-05-11 07:23:05
|
Matt and Michael, Some works are made on commons validator and valang in the spring modules project... Thierry --- "Michael E. Moores" <mm...@re...> a écrit: > Is Valang abstracted from MVC and http requests? > I need a validator that I can plug into my POJOs, > which are app server > classes, > NOT web server classes. > > Matt Raible wrote: > > > Hey guys, > > > > I have the following section in one of my Spring > Live chapters. I > > haven't seen much activity on the "declarative > validation" front in > > Spring MVC - so I want to make sure this is still > valid. > > > > Thanks, > > > > Matt > > > > *Springs Future Declarative Validation Framework > > *At the time of this writing, Commons Validator is > the only > > declarative validation framework that's been > released to support > > Spring MVC. There is another declarative validator > (the _Valang > > Validator_) that's part of the Spring Modules > project, but it hasn't > > been released yet. As far as declarative > validation being part of > > Spring - there are plans for it, but it hasn't > been developed yet. I > > asked Keith Donald to provide me with a few > details about it, and here > > are the key features/differentiators he sent me: > > A simple, consistent interface for defining new > validation rules > > (rule providers simply implement a single "boolean > test(argument)" > > method). > > Support for bean property expressions (for > example, minProperty must > > be less than maxProperty). The property access > strategy will be > > pluggable and not limited to java beans (for > example, allowing > > map-backed storage, or buffered "form objects" on > the rich client side > > of the house). > > Support for complex nested expressions > (and/or/not), and all > > relational operators (>, >=, <, <=, !=, ==). > > Support for applying different sets of rules > based on context or > > use-case. > > A reporting subsystem capable of iterating over > rule structures, > > performing validation, and capturing/generating > error message results. > > This allows you to assemble complex rules > on-the-fly without having to > > hard code a lot of static messages; the reporter > is capable of > > generating rule messages from the underlying > structures automatically. > > Report field typing hints (the rules associated > with a field to let > > the user know what they're expected to type). > > Integration with Spring Rich Client Platform > (RCP) and Spring MVC > > environments. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space > Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_ids93&alloc_id281&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > Take a look at my blog: http://templth.blogspot.com/ __________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ |