Subcomponents
Subcomponents
- Subject: Subcomponents
- From: "Mark W. Shead" <email@hidden>
- Date: Wed, 5 May 2004 16:34:21 -0400
Most of the components I build have a setCallingPage method to make
sure I can create a link back to the previous page. From the calling
page I just do setCallingPage(this) before returning the new page. I'm
trying to make my code more modular by using subcomponents now.
However if a subcomponent on a page calls setCallingPage(this) it only
sets it to the component not the actual calling page.
My first solution was to use setCallingPage(parent()). I coded along
happily until I needed to put a subcomponent A in subcomponent B in
component C. The parent of A is B, but what I really need to do is get
to C.
What is the best way to get a reference to the actual page regardless
of what subcomponent I may be in. Also if there is a better way to
create back tracking links, I'm open to other suggestions.
Thanks!
Mark Shead
_______________________________________________
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.