File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AbstractWizardFormController query

 
Royston Monteiro
Ranch Hand
Posts: 35
Java Linux Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Royston Monteiro
Ranch Hand
Posts: 35
Java Linux Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

Any help?

Cheers,
Royston
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic