Blogs : Latest entries
|
|
|
Today on IRC: Question:
What is the proper place to validate that a form field is numeric? I'm trying to avoid the
NumberFormatException when someone types a non-numeric string for a bean property with the double type.Answer:
It automatically adds a validation error, just by detecting the target type of the bean property, which in this case is numeric.
Amazement:
Really? I have to do nothing?
Made my evening |


