struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20432] New: - Validator returns nulls in JavaScript validation
Date Mon, 02 Jun 2003 23:07:21 GMT
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=20432>.
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=20432

Validator returns nulls in JavaScript validation

           Summary: Validator returns nulls in JavaScript validation
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: matt@raibledesigns.com


I switched from from 20030326 to last night's build today and found that the 
JavaScript was rendered incorrectly for client-side validation.  The buggy 
JavaScript is:



    function required () { 
     this.aa = new Array("fullName", "'null' is a required field.", new 
Function ("varName", " return this[varName];"));
     this.ab = new Array("phoneNum", "'null' is a required field.", new 
Function ("varName", " return this[varName];"));
     this.ac = new Array("msoName", "'null' is a required field.", new Function 
("varName", " return this[varName];"));
     this.ad = new Array("passwordHint", "'null' is a required field.", new 
Function ("varName", " return this[varName];"));
    } 

With 20030326, it correctly renders as:

    function required () { 
     this.aa = new Array("fullName", "'Full Name' is a required field.", new 
Function ("varName", " return this[varName];"));
     this.ab = new Array("phoneNum", "'Phone Number' is a required field.", new 
Function ("varName", " return this[varName];"));
     this.ac = new Array("msoName", "'MSO Name' is a required field.", new 
Function ("varName", " return this[varName];"));
     this.ad = new Array("passwordHint", "'Password Hint' is a required 
field.", new Function ("varName", " return this[varName];"));
    }

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message