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

http://issues.apache.org/bugzilla/show_bug.cgi?id=33823

           Summary: Local Javascript code crashes using validwhen and float
                    together
           Product: Struts
           Version: 1.2.4
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Validator Framework
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


When I validate a field with validwhen and float, the Local javascript 
validation crashes. The crashing code looks like
    function micForm_FloatValidations () { 
     this.a0 = new Array("MICValue", "Field \"MIC Value: \" Must be a decimal 
number.", new Function ("varName", "this.test='((*this* != null) or (excluded 
== "true"))';  return this[varName];"));
    } 
at which point the (excluded == "true") is put in a string without escaping, 
causing javascript a syntax error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to