Re: Getting Name of previous WOComponent
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.