I have a form where the user can enter various items of data, and submit to a controller.
My problem is that some of the fields bind to numeric types (Double) or Date for example. And these cause "failed to convert property" errors if the user does not enter anything. I guess that somewhere before the data gets to the onSubmit method in the controller it is converted to the appropriate type - and that's where for example a NumberFormatException can occur.
How can I intercept and control these conversions, or otherwise repress these errors?