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=16997>.
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=16997

JavaScript function intRange missing

           Summary: JavaScript function intRange missing
           Product: Struts
           Version: 1.1 Beta 3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a form with integer range validation (ie the user should pick an integer 
between 1 and 4)


The html:javascript tag does not generate the intRange() function which is 
called from validateIntRange


function validateIntRange(form) {


                var bValid = true;


                var focusField = null;


                var i = 0;


                var fields = new Array();


                oRange = new intRange();


                for (x in oRange) {


                    if ((form[oRange[x][0]].type == 'text' ||


                         form[oRange[x][0]].type == 'textarea') &&


                         ....


floatRange is also not implemented




my form has a standard form bean extending ValidatorForm




my jsp javascript tag looks like that :




<html:javascript formName="optionsForm"


        dynamicJavascript="true"


         staticJavascript="true" method="validateOptionsForm" />




Also I had to fill in the method= field, otherwise the tag did not want to 
generate the main validation method.

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

Reply via email to