cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Rech" <philipp.r...@gmx.de>
Subject JX-Template with repeater data... how to?
Date Wed, 10 Nov 2004 17:32:31 GMT
hello Cocooner's!

i have a problem: want to display data from a repetar widget in a
JX-Template. So data is passed to the template via a Flow:
---------------------------------------------------------------
form2.showForm("goods");
var model2 = form2.getModel();  
cocoon.sendPageAndWait("confrim_goods", {"model": model2});
--------------------------------------------------------------
with works fine with usual c-forms and jx-tempalets 
where i adress them like:
--------------------------------------------------------------
<div>>${model.WIDGET_NAME}</div>
--------------------------------------------------------------
but how can i do the same with a repeater 
(the c-forms tempalte is this):
-------------------------------------------------------------
<ft:widget-label id="goods"/><br/>
            <ft:repeater-size id="goods"/>-
            <table border="1">
              <tr>
 <th><ft:repeater-widget-label id="goods" widget-id="goodsMaterialId"/></th>
 <th><ft:repeater-widget-label id="goods" widget-id="description"/></th>
 <th><ft:repeater-widget-label id="goods" widget-id="amount"/></th>
 <th><ft:repeater-widget-label id="goods" widget-id="unit"/></th>
 <th><ft:repeater-widget-label id="goods" widget-id="confiscate"/></th>
 <th><ft:repeater-widget-label id="goods"
widget-id="assignAbleToPerson"/></th>
 <th><ft:repeater-widget-label id="goods" widget-id="select"/></th>
              </tr>
             <ft:repeater-widget id="goods">
                <tr>
                  <td><ft:widget id="goodsMaterialId"/></td>
                  <td><ft:widget id="description"/></td>
                  <td><ft:widget id="amount"/></td>
                  <td><ft:widget id="unit"/></td>
                  <td><ft:widget id="confiscate"/></td>
                  <td><ft:widget id="assignAbleToPerson"/></td>
                  <td><ft:widget id="select"/></td>
                </tr>
              </ft:repeater-widget>
              <tr>
                <td colspan="4" align="right">
                  <ft:widget id="addgood"/>
                  <ft:widget id="removegood"/>
                </td>
              </tr>
            </table>
</fi:items>
-------------------------------------------------------------------
and the JX-Tempalte THAT DOES NOT WORK is this:
-------------------------------------------------------------------
<table border="1">
	<tr>
	<th>goodsMaterialId</th>
	<th>description</th>
	<th>amount</th>
        <th>unit</th>
	<th>confiscate</th>
	<th>assignAbleToPerson</th>
        </tr>
	<jx:forEach select="#{????????}">
	    <tr>
		<td>${model.goodsMaterialId}</td>
		<td>${model.description}</td>
		<td>${model.amount}</td>
		<td>${model.unit}</td>
		<td>${model.confiscate}</td>
		<td>${model.assignAbleToPerson}</td>
	    </tr>
	</jx:forEach>
-------------------------------------------------------------------

i do not know what to put in the <jx:forEach select="#{????????}">
to adress the goods elements of the model....

Thanks in davance, thanks a lot indeed!
phil-




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message