• 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: Chuck Hill <email@hidden>
  • Date: Thu, 23 Oct 2008 14:00:58 -0700


On Oct 22, 2008, at 10:06 PM, TW wrote:

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.


I frequently put code in those methods that does not really seem to fit. There is no more "proper" place to do this that I can see.

Chuck


-- 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/products/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: 
 >help - subcomponent won't update (From: TW <email@hidden>)
 >Re: help - subcomponent won't update (From: Chuck Hill <email@hidden>)
 >Re: help - subcomponent won't update (From: TW <email@hidden>)

  • Prev by Date: Re: XcodeMigration tool and Perforce
  • Next by Date: Re: XcodeMigration tool and Perforce
  • Previous by thread: Re: help - subcomponent won't update
  • Next by thread: Important Localization Change in WO 5.4
  • Index(es):
    • Date
    • Thread