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

No way to properly  validate form properties of types other than String

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From [EMAIL PROTECTED]  2002-07-22 18:56 -------
The best, and recognised, practice is to using Strings for all of your form 
bean properties. Apart from the problems you are seeing, using an Integer also 
results in incorrect feedback being given to the user when validation fails. If 
the user typed "abc" into a field that was supposed to be numeric, using an 
Integer property would result in "0" being displayed, along with a message 
saying that the value they entered was not numeric. Clearly, what you want is 
to redisplay the original, invalid, value they entered, instead of 0. To do 
that, you need to use a String property.

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

Reply via email to