• 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: Switch Component Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switch Component Question


  • Subject: Re: Switch Component Question
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 21 Jun 2012 16:26:12 -0700

context().page() will always give you the top-most component.  Is that what you want?  Then you would need to cast it:

((MyPage)context().page()).setFocusObject(eo);

Or iterate up the parent() chain until you find what you want.

Chuck





On 2012-06-21, at 4:23 PM, Amedeo Mantica wrote:

> parent().parent().parent().... ?
>
> Sent from my iPhone
>
> On 22/giu/2012, at 01:16, Johnny Miller <email@hidden> wrote:
>
>> Hi,
>>
>> I'm trying to create a frame set behavior where in one column I have various navigation trees of EOs and in the other column I have a WO switch component that loads the correct editor depending on the type of EO that is selected from the navigation.
>>
>> My question is it is possible for the component loaded by the switch component to communicate back up to the top component and set the EO that in turn will be loaded by the switch component?
>>
>> Hope that makes sense,
>>
>> Johnny Miller
>> Kahalawai Media Corp.
>> www.kahalawai.com
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects









 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Switch Component Question (From: Johnny Miller <email@hidden>)
 >Re: Switch Component Question (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: Re: Switch Component Question
  • Next by Date: Re: Switch Component Question
  • Previous by thread: Re: Switch Component Question
  • Next by thread: Re: Switch Component Question
  • Index(es):
    • Date
    • Thread