DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15070>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15070

JavaScript Range Validation is Faulty

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From [EMAIL PROTECTED]  2002-12-04 21:08 -------
Test case with struts-validator.war:

If you modify the struts-validator validation.xml, specifically jsType form's
field mapping:


<field    property="integer" depends="required,integer,intRange">
to
<field    property="integer" depends="required,integer,range">

the javascript validation will fail because the range javascript object type is
generated by the dynamic javascript of the <html:javascript /> tag.  

This is  javascript mapping for range in validator-rules.xml:

<javascript><![CDATA[
     function validateRange(form) {
          return validIntRange(form);
     }]]>
</javascript>

Can't find validIntRange anywhere in the generated source of jsType.jsp but the
actual error message from mozilla is:

Error: intRange is not defined
Source File: http://localhost/validator/jsType.jsp;jsessionid=aOif8rN9e_r9
Line: 568

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

Reply via email to