The value and index have to go somewhere. Why not in your page class?

Cheers,
Nick.


Mohammad Shamsi wrote:
hi all,

please take a look at my page bellow,

        <!-- do i have to define item object in page class ?? i want to use
it just here in page ??? -->
        <t:loop source="items" value="item" >

        <tr>
            <!-- i want to put an index here for each row in table -->
            <td> ??? </td>
            <td>${item.firstName}</td>
            <td>${item.lastName}</td>
            <td>${item.phone}</td>
        </tr>
        </t:loop>

1 - i just want to use  item object here, for iteration, i don't want to
define it at my page class, can i ?

2  - i need an index var for each row, but it seems that for use index
attribute in loop component, i have to define a property at my page class
first, :((


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

Reply via email to