Blogs : Archives
|
|
| < Nominated and accepted as Java Champion | Gizmo Project : All Calls Free to regular phone lines > |
|
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 |
||||||
Comments |
||||||
|
||||||
|
||||||
Add a new comment |
||||||
|
||||||
| < Nominated and accepted as Java Champion | Gizmo Project : All Calls Free to regular phone lines > |


