• 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: Getting Name of previous WOComponent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Getting Name of previous WOComponent


  • Subject: RE: Getting Name of previous WOComponent
  • From: "Pierre Bernard" <email@hidden>
  • Date: Wed, 17 Dec 2003 16:13:14 +0100
  • Thread-topic: Getting Name of previous WOComponent

If it is returning to the previous page that you are into you should check the server side backtracking example on my web site: http://homepage.mac.com/I_love_my/webobjects.html

Pierre


-----Original Message-----
From: Ray Ackland [mailto:email@hidden]
Sent: Tuesday, December 16, 2003 8:21 PM
To: Philipp Leusmann
Cc: email@hidden
Subject: Re: Getting Name of previous WOComponent


Philipp,

A common problem you are facing. Check the archives for more details,
but the trick is to have a variable in the destination component (and a
public accessor method) to hold the sending component.

When your destination page is created from your originating page, call
that accessor method and store the page (which is just an object) that
is doing the calling, before returning the next page.

Returning to the original page is simply a case of returning the page
stored in that variable.

Ray.

On 17/12/2003, at 6:22, Philipp Leusmann wrote:

> Hi,
>
> is there a built-in way to get the Name of the WOComponent which
> 'brought' the user to another Component?
> In my case I have a page which can be accessed from two different
> pages.
> On that page I want to have a submit-button which saves the data and
> then returns the user to the previous page. But to do this I need to
> know which page was viewed before. Is this possible? Or will I have to
> save the name manually?
>
> Thanks,
> Philipp
_______________________________________________
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.


**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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.

  • Prev by Date: RE: What is JavaPlot? Where is the documentation?
  • Next by Date: Re: What is JavaPlot? Where is the documentation?
  • Previous by thread: Re: Getting Name of previous WOComponent
  • Next by thread: Xcode and project resources
  • Index(es):
    • Date
    • Thread