Hi,
In your tml you define a css class:
<style type="text/css">
.zebra {
background-color: silver;
}
</style>
<table t:type="grid" .... rowClass="rowClass" />
then in your page class, you put something like this:
private int row = 0;
public String getRowClass() {
if (row % 2 != 0) {
return "";
} else
return "zebra";
}
in a setter, inc the row:
public void setCurrentCmt(Comment currentCmt) {
row++;
this.currentCmt = currentCmt;
}
Sorry, I don't get that, how did you do it?
Thanks.
Angelo Chen wrote:
>
> found the solution, have to write a getter to set the rowclass in the page
> class.
>
--
View this message in context:
http://www.nabble.com/T5%3A-Grid%27s-rowClass-tf4827079.html#a14017918
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]