You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pakawat Boonyoung <pa...@www.aczept.com> on 2006/06/14 05:35:53 UTC

How to utilize index property of the @For loop?

I make my table by the goodness of @For components by looping the <tr>
element. I just want to make the alternated colors between odd-rows and
even-rows in my table. How can I do it? Is index property the right
choice?

Many thnx for every helps
Boonyoung

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


Re: How to utilize index property of the @For loop?

Posted by Peter Svensson <ps...@gmail.com>.
There's a very good copyable example in the "learning by teching" war-file
by ... wait .. John Reynolds;

http://weblogs.java.net/blog/johnreynolds/archive/2004/10/learn_by_teachi_1.html

Cheers,
PS

On 6/14/06, com.liigo@gmail.com <co...@gmail.com> wrote:
>
> 在 Wed, 14 Jun 2006 11:35:53 +0800,Pakawat Boonyoung
> <pa...@www.aczept.com> 写道:
>
> > I make my table by the goodness of @For components by looping the <tr>
> > element. I just want to make the alternated colors between odd-rows and
> > even-rows in my table. How can I do it? Is index property the right
> > choice?
>
> YES
>
> >
> > Many thnx for every helps
> > Boonyoung
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How to utilize index property of the @For loop?

Posted by "com.liigo@gmail.com" <co...@gmail.com>.
在 Wed, 14 Jun 2006 11:35:53 +0800,Pakawat Boonyoung  
<pa...@www.aczept.com> 写道:

> I make my table by the goodness of @For components by looping the <tr>
> element. I just want to make the alternated colors between odd-rows and
> even-rows in my table. How can I do it? Is index property the right
> choice?

YES

>
> Many thnx for every helps
> Boonyoung
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



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