• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sava a page in session
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sava a page in session


  • Subject: Re: Sava a page in session
  • From: DevReseune <email@hidden>
  • Date: Wed, 26 Nov 2003 10:17:27 +0100

The previous states aren't stored. Only the last. So, you have to save yourself the state like EOF snapshot or to clone WOComponent for each state (but the memory consumption will be important). If you save the state by hand, you can use a stateless component that uses your snapshot datas to displays the result.

Frederic


Le 26 nov. 03, ` 08:09, Kranthi Sagar Borra a icrit :

Hi all ,
I have tried it to send the page A object to page B and when I am coming back from page B, i loaded the page A object.But this is still giving me the previous state.I mean the state in which it is before I entered the values.Any suggestions on where I am going wrong.


Regards,

Kranthi Sagar
Extn:6799
Direct:0824-2226799
Cell:9845791246



----------
From: 	email@hidden
Reply To: 	email@hidden
Sent: 	Tuesday, November 25, 2003 10:15 PM
To: 	Kranthi Sagar Borra
Cc: 	email@hidden
Subject: 	Re: Sava a page in session

A WOComponent is just an object. Page B is an object, which you can store
in a variable. For instance, when you do:


WOComponent nextPage = pageWithName("SomePageClass");

You've got the instance of 'SomePageClass' stored in 'nextPage'. You can
store that object wherever you want; in a variable in the Session, or in
a variable in another WOComponent. You can then return that variable from
an action method to return that same instance of the page, with all state
intact:


public WOComponent someActionMethod() {
     return someVariableWithAComponentStored;
}


Hope this helps.

On Tue, 25 Nov 2003 20:43:31 +0530 "Kranthi Sagar Borra" wrote:

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.
_______________________________________________
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.

References: 
 >RE: Sava a page in session (From: "Kranthi Sagar Borra" <email@hidden>)

  • Prev by Date: Re: Array, dictionary and set in EOF
  • Next by Date: Re: Sava a page in session
  • Previous by thread: RE: Sava a page in session
  • Next by thread: Re: Sava a page in session
  • Index(es):
    • Date
    • Thread