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/05/19 16:58:05 UTC

DO NOT REPLY [Bug 20037] New: - Integer fields javascript validation doesn't complain on non-integer values

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

Integer fields javascript validation doesn't complain on non-integer values

           Summary: Integer fields javascript validation doesn't complain on
                    non-integer values
           Product: Struts
           Version: Unknown
          Platform: All
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Minor
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: luht@dataart.com


In function validateInteger(form):

if (!isAllDigits(value)) {
  bValid = false;
} else ...

therefore, if field contains non-numeric chars, it is not put to "fields" array
and no alert is produced in the end of function

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