Trapping bind errors to display as failed validation error
Hi,
I've successfully created validators to validate form input but I have one small issue: When a field that maps to a numeric field on command object is left blank or alfa data is entered, the following error is displayed:
Code:
Failed to convert property value of type [java.lang.String] to required type [java.lang.Integer] for property 'version'; nested exception is java.lang.NumberFormatException ...
Where do I trap this exception and
a) ignore it if the field is optional
b) display a more user friendly message.
Thanks very much. Regards,
Stefan :)