> <t:column styleClass="#{(yourVar.valueToCheck >
> backingBean.threshold)? 'styleClass2' : 'styleClass2'}"/>

Won't this only affect the column style, but not the row style?


Regards,

Matthias

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Bruno Aranda
> Gesendet: Mittwoch, 15. Februar 2006 00:35
> An: MyFaces Discussion
> Betreff: Re: Setting CSS Programatically
>
>
> 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
> >

Reply via email to