You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/12 15:55:08 UTC

DO NOT REPLY [Bug 16997] New: - JavaScript function intRange missing

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: struts-dev@jakarta.apache.org
        ReportedBy: levylambert@tiscali-dsl.de


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