|
From: Rob H. <ro...@ca...> - 2005-04-19 18:46:44
|
I'm not that familiar with Commons Validator myself and I was wondering how that worked. I will be adding in validator-rules.xml and making the appropriate changes so that it works with the Spring Modules FieldChecks class. Rob Matt Raible wrote: > > On Apr 19, 2005, at 9:48 AM, Rob Harrop wrote: > >> >> Matt, >> >> Spring Modules 0.1 is going out to tomorrow we reworked Commons >> Validator support. I would certainly appreciate your feedback on it >> when you get a chance to us it. > > > I updated from CVS and tried it - incorporating the changes listed in > changelog.txt. Here's what I had to change to migrate from the > previous version (which mainly required package-name changes). > > BeanValidator -> DefaultBeanValidator > Remove init-method attribute from ValidatorFactory > Change "resources" property on ValidatorFactory to > "validationConfigLocations" > > Everything seems to work great. Are there any additional changes you > plan on making before the 0.1 release? > > One thing I noticed in Validator 1.1.3 is that much of the JavaScript > is generated from code inside the JAR, rather than a > validator-rules.xml file. I'm guessing validator-rules.xml is still > required for Spring integration? Yep, answered my own question: > leaving it out results in: > > java.lang.NullPointerException: Depends string "required" was not > found in validator-rules.xml. > at > org.springmodules.commons.validator.taglib.JavascriptValidatorTag.doStar > tTag(JavascriptValidatorTag.java:334) > > Maybe this file should be included in the release somehow - or we > should figure out a way to override the JavaScript that's generated > from inside commons-validator.jar? The guys on the validator list > are pretty friendly, so I'm guessing they'd be willing to help out > with this. > > Matt > >> >> Rob >> >> >> From: spr...@li... >> [mailto:spr...@li...] On >> Behalf Of Matt Raible >> Sent: 19 April 2005 17:04 >> To: spr...@li... >> Subject: Re: [Springframework-developer] Where does webflow live? >> >> >> So what's the recommended strategy here? Do you guys recommend I >> drop spring-sandbox.jar from AppFuse/Equinox and use the >> springmodules version of Commons Validator support? My guess is "yes". >> >> It would be nice if there was a release of the validator support on >> java.net?. Is it possible to publish a 1.0 version of the validator >> JAR? >> >> Thanks, >> >> Matt >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free runtime > info, > new features, or free trial, at: http://www.businessobjects.com/devxi/728 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |