Hi Nicolas,
You have to use the forms transformer instead of the forms generator.
I assume you use the generator, because otherwise the cforms stuff would not
have worked.
Regards,
Chris
[ c h r i s t o f e r d u t z ]
IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt
fon: 0 61 51 / 66 717 - 21
fax: 0 61 51 / 66 717 - 29
email: [EMAIL PROTECTED]
http://www.univativ.de
Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
-----Ursprüngliche Nachricht-----
Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Nicolas Duroc
Gesendet: Mittwoch, 7. Juni 2006 12:39
An: [email protected]
Betreff: repeaterLoop in repeater-rows
Hi,
In the online cocoon documentation, I've found :
http://cocoon.apache.org/2.1/userdocs/widgets/widget_repeater.html#From+Coco
on+
2.1.8
I'm using cocoon 2.1.9, I have a table, and I would like to apply a style on
alternative rows, so I've taken as example the following code :
<ft:repeater id="myrepeater">
<table>
<tbody>
<tr>
<th><ft:repeater-widget-label widget-id="field1"/></th>
<th><ft:repeater-widget-label widget-id="field2"/></th>
</tr>
<ft:repeater-rows>
<tr class="forms-row-${repeaterLoop.index % 2}">
<td><ft:widget id="field1"/></td>
<td><ft:widget id="field2"/></td>
</tr>
</ft:repeater-rows>
</tbody>
</table>
</ft:repeater>
The repeater works, but the "repeaterLoop" is not evaluated, and the
obtained
table contains <tr class="forms-row-${repeaterLoop.index % 2}">.
I've seen in previous posts that I had to include the following jx statement
:
<jx:import
uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>
I have included it, but it doesn't work better. In the example, they don't
use
any jx tags in the repeater. Is the example correct ?
Thanks in advance
Regards,
Nicolas Duroc
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]