I have a few queries on the lifecycle of the AbstractWizardFormController.
1. Is the onBind() method called before processCancel?
In my controller, from the onBind method, I call a service method that inserts data into a database using a DAO. When I click the cancel button, I expect the processCancel method to be called, taking me to the cancel page, but find that the insert happens with null values.
2. Am I using onBind for the wrong purpose? Where should I call the insert methods ideally. I have a few if tests that use the getCurrentPage method to check the page the onBind is being called from and performing functionality specific to that page.
3. I have looked around the net for information on the life cycle of this controller but haven't found any. All searches seem to end up in the API. Where can we find information about the lifecycle?
Sun Certified Java Programmer 1.5,
Sun Certified Web Component Developer 5.
"No pain. No Gain"