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

Nested component communication


  • Subject: Nested component communication
  • From: David Holt <email@hidden>
  • Date: Tue, 10 Aug 2004 15:52:01 -0700

Hello,

I am trying to get a navigation bar to work so that an image changes when the user is on the page (like the tabs on Apple's site).

The way I have set it up is to have a page wrapper containing a WOComponentContent and a NavigationBar Component made up of Rollover components. In my API for the wrapper I have set a boolean variable called "tabOne" and for all of the components that fill the "WOComponentContent" under "tabOne" I have set their "tabOne" binding to "true".

I have also placed "tabOne" variables in the wrapper component, the NavigationBar component and the Rollover component. I have wrapped the rollover button for tabOne in a conditional to display the rollover when the boolean is false (i.e. not on a page that is in tabOne) and a static image when the boolean is true. My problem is that the boolean is always evaluating to false on pages where "tabOne" is true and as a result only the rollover is displayed in its conditional. From my reading, it seems that the component communication is automatic from the parent components to child components so long as the variables are named the same thing.

Am I misunderstanding something about how the communication would occur from ComponentContent>Wrapper>NavigationBar>Rollover ? If so, what would be a better way to implement this? Thanks,

David
_______________________________________________
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.


  • Follow-Ups:
    • Re: Nested component communication
      • From: Zak Burke <email@hidden>
  • Prev by Date: Re: I am stumped.SOLVED
  • Next by Date: Re: Xcode 1.5
  • Previous by thread: Re: I am stumped.SOLVED
  • Next by thread: Re: Nested component communication
  • Index(es):
    • Date
    • Thread