I noticed that SimpleFormController class has some inherited methods like onbind() and onBindAndValidate(). Why does it doing the binding before the validation? Is it more logical to do validation first, if there is errors, then no need to do further binding. I have a command object that has some primitive type like int and long. It generates some NumberFormatException because user submit null value, which I intend to catch it in validatiion method.
Is it a required that all fields in Command Object have to be an Object type, no primitive?


Reply With Quote