Hi,

I have a list of items.  For each item I have to select a property from the
set of the predefined values.

If I just needed to display the items and the set of values I could have had
something like this:

<tr jwcid="@Foreach" source="ognl:itemList" value="ognl:item" element="tr">
        <td><span jwcid="@Insert" value="ognl:item.getItemString()"/></td>
        <td><span jwcid="selectProperty" size="5"/></td>
</tr>

<component id=" selectProperty " type="PropertySelection">
        <binding name="model" expression="propertyModel"/>
        <binding name="value" expression="property"/>
</component>

Now since I need to both set initially selected values and read newly
selected values from PropertySelection component I need ListEdit component
instead of Foreach.  

My question is: is there a way to iterate through both Insert and
PropertySelection components while rendering the page (setting values) and
through PropertySelection components while rewinding the page (reading
values) without packing the item/value object pair into a wrapper object?
As far as I understand there is no other way to make it work with
ListEditMap.

Is there a more elegant solution?

Sergiy

=====================
Multiplex Systems LLC
http://www.mpxsys.com
=====================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to