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

Allow Validator intRange to validate select-one and radio fields

           Summary: Allow Validator intRange to validate select-one and
                    radio fields
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Validator Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In some form combo boxes you might have the combo boxes populated with valid 
choices plus one additional choice with a caption something like  "Choose one" 
and a value 0f "-1".  Then when the user attempts to submit the form, you can 
look for the value of "-1" and yell at them if they failed to pick something.

Right now, the Struts Validator does this just fine within the ValidatorForm 
class when the user submits the form.  Unfortunately, this validation doesn't 
happen on the client side because the intRange JavaScript only considers text 
and textarea fields.

I will attach a small patch to the validator-rules.xml file that allows 
intRange to also validate select-one and radio fields.

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

Reply via email to