Hi Michał,

you can do this by using the markup attribute of tc:column.

<tc:column  markup="#{client.special ? 'red' : 'none'}" ...>

register the markup in the tobago-config.xml

and add a css class to a application css file:

.tobago-column-markup-red {
 background: red;
}

Regards,
 Volker

2007/3/20, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]>:
Hi,

I would like to apply some color to rows background, depending on
value from var. Ex:

I have List<Clients> clients;

clients contains Boolean special;

now I have tc:sheet value="#{clients}" var="client"

if client has special == true I would like to color his row red.

Any hint how I could achieve this?

regards,
michael

--
[EMAIL PROTECTED]
http://stawicki.jasliska.pl
GG: 3691111
JID: [EMAIL PROTECTED]

Reply via email to