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=30872>. 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=30872 Struts Validation - Client Side required field validation fails for SELECT lists and checkboxes ------- Additional Comments From [EMAIL PROTECTED] 2004-09-06 11:09 ------- NOTE: I have seen this issue has been solved in cvs head (for required validation). I am posting this anyway as I think it is a more general solution (it grabs all values for an element so you don't have to care what type of element it is, just its values). Please read on. The problem with this is the way html handles different input types. Some input types (text, textarea, hidden, password, select-one and file) can only return single values. Checkboxes, radio buttons (surprising enough) and select- multiple return multiple values. When performing required validation (this also happens with other validations, some of them even check less types) it is not validating checkboxes and select-multiple and it isn't correctly handling radio buttons. I propose a different way of doing things: 1. First fill the object we use for validation with all the values is currently holding. Textarea, text... will have a single element array and check --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
