Re: Pulling Values from Subcomponent
Re: Pulling Values from Subcomponent
- Subject: Re: Pulling Values from Subcomponent
- From: Kieran Kelleher <email@hidden>
- Date: Sat, 13 Jan 2007 12:41:38 -0500
In general, values are pulled from parent to child with
WOComponent.valueForBinding( ... )
and pushed from child to parent with WOComponent.setValueForBinding
( ... , ...)
Also, unless you have disabled synchronization on the component,
WebObjects subcomponents automatically pull and push binding values
at the beginning and end of each phase of the R-R loop.
Reading the WOComponent api javadocs are essential (mandatory) to
understand subcomponents. Also Practical WebObjects has a piece on
the life of a component or sth like that which is invaluable for
understanding what is going on.
Here is a bit on reusable stateless subcomponents that might be os use:
http://homepage.mac.com/kelleherk/iblog/C1133025376/E1896801830/
index.html
Regards, Kieran
On Jan 13, 2007, at 4:29 AM, Seabix GmbH - Th.Kramis wrote:
Hi all
I know this might sound like a complete newbie question:
I want to implement a component that I can reuse in multiple places. I
manage to push values from it's parent component down to the
subcomponent
but can't find a way to get values back.
What I did up to now:
1. implemented the subcomponent to get a WODisplayGroup from it's
parent
component
2. implemented a method to return the selected item of the
WODisplayGroup
Now I wan't to be able to get the selected object into the parent
component:
3. I bound that return-method to a settable value in the parent
component.
4. I also created the api-file.
Anyone who can help me on this?
Thanks.
_______________________________________________
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