I could be wrong, but won't this just set the style for my column, not my row? I need to set the whole row a certain style.
I'm playing around with the setRowClasses() method of the HtmlDataTable class, but doing it this way is very cumbersome.
-Elam
On 2/14/06, Bruno Aranda <[EMAIL PROTECTED]> wrote:
Yes you can using the t:column. Something like this
<t:dataTable var="yourVar" ... >
<t:column styleClass="#{(yourVar.valueToCheck >
backingBean.threshold)? 'styleClass2' : 'styleClass2'}"/>
</t:dataTable>
Use a managed bean with the exposed "threshold" variable.
Hope that helps,
Bruno
On 2/14/06, Elam Daly <[EMAIL PROTECTED] > wrote:
> Howdy all,
>
> Is it possible to set the css of row in a dataTable programmatically? I
> have a dataTable bound to a UIData component and I cycle through the rows of
> the table and calculate some values. If the value is greater than a certain
> threshold, I need to highlight the entire row, say by coloring it red. Is
> is possible to manipulate the style for that single row?
>
> Thanks,
> -Elam
>

