commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22121] - required validator doesn't work with String[] (multi-selects)
Date Fri, 15 Aug 2003 16:31:15 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=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.

Mime
View raw message