Yes, I could do that, but that would mean putting CSS in Java classes and I would prefer avoiding that.
Does Tapestry 5 have any support for conditions like "index % 2 == 0" in templates? ________________________________ From: Stephan Windmüller <stephan.windmuel...@tu-dortmund.de> To: users@tapestry.apache.org Sent: Tue, September 14, 2010 11:17:03 AM Subject: Re: Alternating table rows On 14.09.2010 10:01, John Doe wrote: > How can I make the alternating rows? Use the following code: private boolean switch; public String getSwitchedClass() { switch = !switch; return switch ? "odd" : "even"; } And in the tml: <tr class="${switchedClass}"> HTH Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org