wood burning stoves 2.0*
The moose likes Spring and the fly likes AbstractWizardFormController query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "AbstractWizardFormController query" Watch "AbstractWizardFormController query" New topic
Author

AbstractWizardFormController query

Royston Monteiro
Ranch Hand

Joined: Apr 25, 2008
Posts: 35

Hi Folks,
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?

Thanks,
Royston


Cheers,
Roy.
Sun Certified Java Programmer 1.5,
Sun Certified Web Component Developer 5.
"No pain. No Gain"
http://cs.nyu.edu/~rpm319
Royston Monteiro
Ranch Hand

Joined: Apr 25, 2008
Posts: 35

Hi Folks,

Any help?

Cheers,
Royston
 
jQuery in Action, 2nd edition
 
subject: AbstractWizardFormController query