Guys,
When a user logs to my application he has the following information:
my account
projects
.
.
in order to populate information (say to 'my account') I'm using the reset method in the form. If the user clicks on 'projects' and return to 'my account' the reset method kicks-in again (not good)
question: (1) is that a good practice to populate the information in the reset method?
if yes, (2a) how can I overcome the problem stated above?
(2b) If not, how to populate the form BEFORE it gets to the jsp page? I understand I should do it in the action prior to the jsp page, but how can I get that specific form, and fw it?
Merrill
Consultant, Sima Solutions
2. (even worse) all new info the user typed is gone
Merrill
Consultant, Sima Solutions
Originally posted by Peter Primrose:
Hi Merrill,
the scenario is this:
The user has a save button and if he clicks save - the info is saved and everyone is happy. The problem occurs when he type something (say he added a middle name) and didn't click save, now he clicks 'Projects' and went back to 'my account' ---> (prepareXpageAction will kick in ...db...) the added middle name is gone.
I wonder how to avoid the second prepareXpageAction
thanks
I wonder how to avoid the second prepareXpageAction
Merrill
Consultant, Sima Solutions
Merrill
Consultant, Sima Solutions
We can walk to school together. And we can both read this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|