You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/08/15 18:31:15 UTC

DO NOT REPLY [Bug 22121] - required validator doesn't work with String[] (multi-selects)

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

required validator doesn't work with String[] (multi-selects)

dgraham@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|commons-                    |dgraham@apache.org
                   |dev@jakarta.apache.org      |
            Summary|[patch] The "required"      |required validator doesn't
                   |validator doesn't work with |work with String[] (multi-
                   |String[] (multi-selects)    |selects)



------- Additional Comments From dgraham@apache.org  2003-08-15 16:31 -------
I just ran into this problem as well and will commit a variation on the 
suggested approach soon.  I think we should check for Collection and String[] 
(let's refer to these collectively as the "list").  If the list is empty we 
return "", else we return list.toString().  This way we'll only be returning 
null when there's an error retrieving the property.