|
From: Michael E. M. <mm...@re...> - 2005-05-10 20:33:03
|
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 > > *Spring=92s 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: > =95 A simple, consistent interface for defining new validation rules > (rule providers simply implement a single "boolean test(argument)" > method). > =95 Support for bean property expressions (for example, minProperty mu= st > 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). > =95 Support for complex nested expressions (and/or/not), and all > relational operators (>, >=3D, <, <=3D, !=3D, =3D=3D). > =95 Support for applying different sets of rules based on context or > use-case. > =95 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. > =95 Report field typing hints (the rules associated with a field to le= t > the user know what they're expected to type). > =95 Integration with Spring Rich Client Platform (RCP) and Spring MVC > environments. |