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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to