Re: Sava a page in session
Re: Sava a page in session
- Subject: Re: Sava a page in session
- From: Jim Pearson <email@hidden>
- Date: Tue, 25 Nov 2003 11:12:24 -0500 (GMT-05:00)
Hello,
There are lots of ways to do this, and they all have different shortcomings and advantages.
If going back to the page A is important to the workflow, and its state must be preserved, then you can store it in the Session. As the action method in page A is being executed, and before the pageWithName("B") is returned from the action method, you can place the page A in the Session via a method you might put there.
Next, once you reach the point in the workflow where you have come from page C and are now at B, you can then return the Session's held "A" page instance instead of using pageWithName().
This would work pretty well in most circumstances. However, if you are doing this from many pages (to many pages) in the application, there are better ways to do this. You could use an NSDictionary to hold pages you need to retain, with keys that are well-defined in the pages that need to return them...
jimp
-----Original Message-----
From: Kranthi Sagar Borra <email@hidden>
Sent: Nov 25, 2003 10:13 AM
To: email@hidden
Subject: Sava a page in session
Hi ,
I have a page A in which I enter few fields but will not save, instead I will click on a button which will take me to a page B.I shall do some transactions here which will load another page C and finally come back to page B.Now I need to go from page B to page A on click of a button/link.But now I cannot load page A by calling the method "pageWithName("A");" , this will reload my entire page "A" again and I will loose any information that I entered in "A" before.So is there any way by which I can store the page "A" in some session/cache and reload it again when i click on the link.Thanks in advance.
Regards,
Kranthi Sagar
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.