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
>