Do you know what is the reason there isn't javascript validation for this rule ?


-----Message d'origine-----
De : Wendy Smoak [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 31 août 2006 17:55
À : Struts Users Mailing List
Objet : Re: validateValidWhen and javascript

On 8/31/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:

> Is there a javascript file to use validateValidWhen method on client
> side ?

No.  If you look in the bundled validation-rules.xml file for 1.3,
there is no 'jsFunction' attribute for validwhen.  (The JavaScript for
the default rules now lives in Commons Validator.)

http://svn.apache.org/repos/asf/struts/struts1/trunk/core/src/main/resources/org/apache/struts/validator/validator-rules.xml

The Java code for validwhen is generated by Antlr.  You can look at
the source, here:
http://svn.apache.org/repos/asf/struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/validwhen/

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-------------------
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to