commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole_er...@yahoo.com>
Subject Re: svn commit: r507611 - in /jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript: validateRequired.js validateUtilities.js
Date Wed, 14 Feb 2007 16:48:41 GMT
Hi,

The below looks interesting.  Does Common's have
javascript stuff?

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/dev@myfaces.apache.org/msg18916.html

I tried to follow the JSF JSR, but code it in
javascript so that it runs on the client.

Cheers,
- Ole




--- niallp@apache.org 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:
> commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-dev-help@jakarta.apache.org
> 
> 



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message