dear Nick,

i want index just for iteration, i don't need it in may page class, i think
that its better to define in Loop component class,

suppose that i want to use Loop, 5 times in a singe page, then i most define
5 index value, and five item object ???



On 10/14/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>


-- 
sincerely yours
M. H. Shamsi

Reply via email to