Andrew wrote:
Hi,
is there a way I can build my list from accesing the required order
class I use in selection-list? In my jx I do:
<jx:forEach var="orderitem" items="${neworder.getOrderItems()}">
and then pull out the id I want in the checkbox as so:
<fi:styling value="${orderitem.getID()}" type="checkbox"/>
So would I be able to do:
selection-list src="neworder.getOrderItems ().get()" ? And if so how
would the selection-list know how to iterate through the object to pull
out all orderitem id's?
Use the flow-jxpath selection list type as described on
http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html.
Something like:
<fd:selection-list type="flow-jxpath"
list-path="neworder/orderItems" value-path="ID"
label-path="(optional path to display label)" />
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]