• 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: Chuck Hill <email@hidden>
  • Date: Tue, 16 Dec 2003 10:56:49 -0800
  • Organization: Global Village Consulting, Inc.

In the constructor you can do this:

protected WOComponent previousPage;

public MyComponent(WOContext aContext) {
    super(aContext);
    previousPage = aContext.page();
}


And then use this as an action method:

public WOComponent returnToPreviousPage() {
    return previousPage;
}

Chuck


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
http://www.omnigroup.com/mailman/listinfo/webobjects-dev

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net

Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
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: 
 >Getting Name of previous WOComponent (From: Philipp Leusmann <email@hidden>)

  • Prev by Date: Re: sending a url with international characters
  • Next by Date: Re: EOClassDescription not found
  • Previous by thread: Getting Name of previous WOComponent
  • Next by thread: Re: Getting Name of previous WOComponent
  • Index(es):
    • Date
    • Thread