• 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

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

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic