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

Form population automatically assign default value when parsing error occurs.





------- Additional Comments From [EMAIL PROTECTED]  2004-02-26 18:46 -------
Why is this not a bug? 

User enters something that is not parseable to an integer into a form field, I
expect that to be caught by the validator framework, instead here
is what happens.

In the process of transferring the form data into the actionform, my
bean property is defined as an integer, so the BeanUtils try to convert
the form field to an integer fails and defaults it to zero.

Zero is valid so it passes my validator which  is setup
to verify that it's an integer.  The javascript validation will
catch this, but that can be turned off!

Seem like the validator framework should work against the
form data on the request not the ActionForm.

Raj

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

Reply via email to