Daniele,
If your components auto synchronize (true, by default), then all you would need to do is add a binding.
MyList.api
- add mySelection binding (when bound, this will cause array to be pushed down to the subcomponent as well as pushed up from the subcomponent at various times in request-response cycle)
if MyList does NOT auto synchronize, then you will need to at the least code push up to parent to have the parent get the value, OR use a shortcut (at least I know this shortcut is available in the WOD file):
MyList.wod:
Foo : MyList {
mySelection = ^mySelection;
}
Then bind a var in the parent component to the subcomponent
MyPage.wo
- add binding <wo:MyList mySelection=“$myPageMySelection”/>
But in general, pages/components don’t have direct access to subcomponents. They push/pull values via bindings or share objects whose attributes can be seen by both component classes.
--
Robert B. Hanviriyapunt
Director of Product Development and Architecture
<LStreetC-logo-for-mail.png> / EDC Technology
Direct 312.246.5509
Fax 630.243.5799
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