• 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
Subcomponents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Com.webobjects.eoaccess package in Direct to Java
  • Next by Date: Re: WODisplayGroup with a suppplied editing context
  • Previous by thread: Re: Java client launch problem
  • Next by thread: Re: WODisplayGroup with a suppplied editing context
  • Index(es):
    • Date
    • Thread