cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Duroc <>
Subject repeaterLoop in repeater-rows
Date Wed, 07 Jun 2006 10:38:56 GMT

In the online cocoon documentation, I've found :

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">
        <th><ft:repeater-widget-label widget-id="field1"/></th>
        <th><ft:repeater-widget-label widget-id="field2"/></th>
        <tr class="forms-row-${repeaterLoop.index % 2}">
          <td><ft:widget id="field1"/></td>
          <td><ft:widget id="field2"/></td>

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


Nicolas Duroc

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message