Re: help - subcomponent won't update
Re: help - subcomponent won't update
- Subject: Re: help - subcomponent won't update
- From: Chuck Hill <email@hidden>
- Date: Wed, 22 Oct 2008 19:44:18 -0700
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
--
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