This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple linked forms (wizard style) and the form's reset method

 
Mark Wa
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have a set-up of multiple forms. There are two options for starting the "wizard". from fresh, or from pre-existing data. It all works fine with the form beans set up to session scope. There is one small bug that I am trying to fix whereby the user chooses to populate from fresh, then clicks back and decides to populate from pre-existing data, but the data the user first entered exists in the forms, not the data in the database.
The data from the database populates the forms when the reset method is called. however upon debugging the reset method does not get called on the form object when re-navigating to it for the second time.

It's a confusing explanation, sorry, but its a complicated problem. If you have any questions. Please ask and I'll try to clarify.

Any help would be much appreciated
 
Mark Wa
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No help. Perhaps If I re-explain.

I have a set up of multiple forms, but when the user goes back. The reset method is not called when the form is loaded for the second time. Why is this?

It causes problems with my application as thats where the code to populate the form is run.
 
Renz Alexander
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you pressing the browser's back button or your own custom back button? if your using the browsers' back button your just going back to the previous page which includes what you posted there. with a custom back button you could just set the link to the reset action. hope it helps
 
Mark Wa
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. This is no longer a problem. It was an implementation specific problem. I didnt know what was causing it, and so couldnt replicate it. But tit's fixed now. thanks for the help anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic