Cool - I'll look at the JIRAs in more detail. It would be great to have some developer use cases for how to leverage common's validator with the frameworks.
Cheers, - Ole --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > On 2/14/07, Ole Ersoy <[EMAIL PROTECTED]> wrote: > > Hi, > > > > The below looks interesting. Does Common's have > > javascript stuff? > > It does - but its been implemented "upside down" > which causes all > sorts of issues - also The "static" javascript > functions are in > Commons Validator but rendering the dynamic part > that uses those > functions is in the frameworks that use it (e.g. > Struts, Shale). I > started work to resolve both the architecture and > provide the dynamic > rendering in Commons Validator a long time ago - but > then never went > back and finished/implemented it: > > http://issues.apache.org/jira/browse/VALIDATOR-106 > http://www.niallp.pwp.blueyonder.co.uk/validatorjs.html > > > Incidentally I donated a Javascript Framework > written > > on top of dojo to myfaces a while back, in case > anyone > > is interested. It has the ability to hook > javascript > > validators to components. > > > > > http://people.apache.org/~matzew/dojo.presentation.zip > > > > > http://www.mail-archive.com/[email protected]/msg18916.html > > > > I tried to follow the JSF JSR, but code it in > > javascript so that it runs on the client. > > Cool - I'll try to take a look at some point (don't > have much time at > the moment). If you have stuff you think that would > be good in Commons > Validator - patches/code to Jira are most welcome > :-) > > http://jakarta.apache.org/commons/validator/issue-tracking.html > > Niall > > > > Cheers, > > - Ole > > > > > > > > > > --- [EMAIL PROTECTED] wrote: > > > > > Author: niallp > > > Date: Wed Feb 14 08:40:49 2007 > > > New Revision: 507611 > > > > > > URL: > > > http://svn.apache.org/viewvc?view=rev&rev=507611 > > > Log: > > > VALIDATOR-223 - Move the trim() function to > > > validateUtilities.js - thanks to Hasan Turksoy > > > > > > Modified: > > > > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateRequired.js > > > > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateUtilities.js > > > > > > Modified: > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateRequired.js > > > URL: > > > > > > http://svn.apache.org/viewvc/jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateRequired.js?view=diff&rev=507611&r1=507610&r2=507611 > > > > > > ============================================================================== > > > --- > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateRequired.js > > > (original) > > > +++ > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateRequired.js > > > Wed Feb 14 08:40:49 2007 > > > @@ -110,8 +110,3 @@ > > > } > > > return isValid; > > > } > > > - > > > - // Trim whitespace from left and right > sides of > > > s. > > > - function trim(s) { > > > - return s.replace( /^\s*/, "" ).replace( > > > /\s*$/, "" ); > > > - } > > > > > > Modified: > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateUtilities.js > > > URL: > > > > > > http://svn.apache.org/viewvc/jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateUtilities.js?view=diff&rev=507611&r1=507610&r2=507611 > > > > > > ============================================================================== > > > --- > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateUtilities.js > > > (original) > > > +++ > > > > > > jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateUtilities.js > > > Wed Feb 14 08:40:49 2007 > > > @@ -154,3 +154,8 @@ > > > } > > > return true; > > > } > > > + > > > + // Trim whitespace from left and right > sides of > > > s. > > > + function trim(s) { > > > + return s.replace( /^\s*/, "" ).replace( > > > /\s*$/, "" ); > > > + } > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
