• 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: help - subcomponent won't update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help - subcomponent won't update


  • Subject: Re: help - subcomponent won't update
  • From: TW <email@hidden>
  • Date: Wed, 22 Oct 2008 22:06:14 -0700

On Oct 22, 2008, at 7:44 PM, Chuck Hill wrote:

On Oct 21, 2008, at 3:13 PM, TW wrote:

Hello all:

I have a WOComponent (not stateless at this time) that I have embedded into a master page. The embedded component has an API entry requiring "jobItem." My master component has a binding to this using selectedObject(). selectedObject() is updated when selecting an item from a DisplayGroup via WOHyperlink (although I've also tried a WOSubmitButton in case it was necessary). I've put messages in the code and I can confirm setSelectedObject() is happening as well as DisplayGroup.setSelectedObject().

The problem I'm having is that when a new job is selected it is not pushed to the child component via the binding and I'm not sure why. The child component continues to display the data from the previous selectedObject() through the rest of the session. I've even tried to set synchronizesVariablesWithBindings() to return true in the child and attempted to use more standard ivars instead of valueForBinding. The result is the same. At this point I have no idea why the selectedObject() isn't being passed.

This would probably work better as a stateless component but the child component also has a child component of its own (for searching) and I couldn't get the behavior right with reset() happening at every point in the RR loop. So, I punted.

Am I overlooking something huge?


Need more information.  Can you post the code of the component?

Chuck

Hey Chuck! Thanks for hittin' me back. I was able to get the results I wanted to by overriding some of the r/r loop methods. In one subcomponent I used awake() and in another appendToResponse(). For now this seems to be doing the trick. I should've looked around a bit more before I started whining.


Tim
-----
Timothy Worman
Programmer/Analyst - Database Administrator
Graduate School of Education and Information Studies
University of California Los Angeles

_______________________________________________
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


  • Follow-Ups:
    • Re: help - subcomponent won't update
      • From: Chuck Hill <email@hidden>
References: 
 >help - subcomponent won't update (From: TW <email@hidden>)
 >Re: help - subcomponent won't update (From: Chuck Hill <email@hidden>)

  • Prev by Date: [SOLVED] How do I add user Info in nightly's entity modeler?
  • Next by Date: RE: Running tests from ant on a continuous integration server
  • Previous by thread: Re: help - subcomponent won't update
  • Next by thread: Re: help - subcomponent won't update
  • Index(es):
    • Date
    • Thread