Re: Manually Synchronize WOComponents
Re: Manually Synchronize WOComponents
- Subject: Re: Manually Synchronize WOComponents
- From: John Larson <email@hidden>
- Date: Fri, 15 Dec 2006 06:02:38 -0600
Hi Carter,
Not that I can give you an immediate answer, but these kinds of
problems usually arise when there isn't enough attention paid to the
order in which the components are generated. One of the hardest
things for me to remember about WO is that it "rebuilds" the page
during the request-response loop as opposed to the components just
staying like they were in the last cycle. That being said, your
Comp#2 has to have been generated before the invokeAction is called
on the button. Usually the easiest way to do this is to put the
button lower on the page than Comp#2.
Did I help at all, or is it something else?
John
On Dec 11, 2006, at 12:52 PM, Carter Wojcik wrote:
Hi All -
I have created a wocomponent (OuterComponent) with
synchronizesVariables = false that contains another
wocomponent (Comp#2) synchronizesVariables = false and
a wodynamicelement (WODynamic) that displays some
buttons. I would like to place the OuterComponent on
a page, the page contains an action, and have the
action fired when a button in the WODynamic is
pressed.
The action needs a nsarray of objects that is created
in Comp#2.
I am able to get the action method to fire, but when
checking from within the method for the nsarray of
objects, the array is always null. I have tried
pushValuesToParent() and setValueForBinding() after
creating the nsarray (setSelectedItems()) in Comp#2.
Are there any additional ways to push binding values
to the parent when child is not synchronizing
variables?
Thanks for the help.
Carter
______________________________________________________________________
______________
Any questions? Get answers on any topic at www.Answers.yahoo.com.
Try it now.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
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