aspose file tools*
The moose likes Struts and the fly likes Multiple linked forms (wizard style) and the form's reset method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple linked forms (wizard style) and the form Watch "Multiple linked forms (wizard style) and the form New topic
Author

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

Mark Wa
Ranch Hand

Joined: May 29, 2009
Posts: 122
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

Joined: May 29, 2009
Posts: 122
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

Joined: Jun 11, 2010
Posts: 28
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

Joined: May 29, 2009
Posts: 122
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.
 
wood burning stoves
 
subject: Multiple linked forms (wizard style) and the form's reset method