Getting Selected Values from Subcomponents
Getting Selected Values from Subcomponents
- Subject: Getting Selected Values from Subcomponents
- From: Daniele Corti <email@hidden>
- Date: Wed, 28 Jan 2015 12:46:29 +0100
Hi list,
I don't know if what I want to do is the best approach:
I would like to create a Main Component Page that call a reusable SubComponent
Example:
MyPage.wo:
<h1>My Page</h1>
<wo:form multipleSubmit="$true">
<wo:submitButton action="" It!</wo:subimtButton>
<wo:MyList></wo:MyList>
</wo:form>
in the Subcomponent there is a List of Checkbox
MyList.wo:
<ul>
<wo:loop list="$myList" item="$myItem">
<li><wo:checkBox selection="$mySelection" value="$true"></wo:checkBox></li>
</wo:loop>
</ul>
I would like to obtain the checked objects of the subcomponent, but I don't know how can I get the subcomponent from the Parent MyPage.
I know I can put the button in the subcomponent and call performParentAction, but I would like to put all the logic inside the MyPage component, and simply display values in the MyList component.
Is this possible (first of all)? And, if so, how can I reach subcomponents from parent?
Thank you in advance!
--
Daniele Corti
--
I DON'T DoubleClick
_______________________________________________
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