My problem is that I have a lot of code duplication, also this seems to me as
a simple display problem so I dont like the fact that I have to create logic
in the java page for this just so that I can put one extra css class in one
place. 

Apart from that the 2 blocks in your case would be exactly the same. In php
it would be easier to solve this (wow I am actually saying something is
better to solve in php :) ) as I could just suround the class with simple
if, but here I cant put the if logic in the middle of a tag so I have to
duplicate html. 

Hope this explains it a bit better 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-have-every-second-value-in-the-t-loop-different-tp5714278p5714281.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to