1 Reply Latest reply on Oct 16, 2011 7:06 PM by Brendan Healey

    Giving style to a column in Richfaces Datatable based on value in each cell

    G. Gallager Newbie



      I am looking for a way to give style to each number in a column of a datatable, based on whether the number is negative or non-negative. For example the number would be red if negative and green if non-negative.












      How can I do this The numbers are being loaded into the table with <h:outputText value="#{mybean.transaction}"/> here:



                                                                                                      <f:facet name="header">Transaction</f:facet>

                                                                                                      <h:outputText value="#{mybean.transaction}"/>



      so I cannot give style to the numbers seperately. Any help asap is appreciated. Thanks!