• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AbstractWizardFormController query

 
Ranch Hand
Posts: 35
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,

Any help?

Cheers,
Royston
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic