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 2005/03/03 01:42:04 UTC

DO NOT REPLY [Bug 33823] New: - Local Javascript code crashes using validwhen and float together

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: dev@struts.apache.org
        ReportedBy: gepeng1983@hotmail.com


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