1 Reply Latest reply on Nov 9, 2009 9:39 AM by ilya_shaikovsky

    rich:dataTable: How can style or class of row be set by back

    hanafey

      It seems a fairly common requirement in a table is to highlight rows based on their content.

      Example: some server-side logic determines that some set of rows in the table should have a red background, and some should have a green background, based on say profit or loss.

      But there does not seem to be a simple way to style rows of a table based on the backing bean.

      Why is there not a "rowStyle" attribute on rich:dataTable that can be evaluated via a reference to the iteration variable to produce arbitrary dynamic row styles?

      Or am I just missing the way to do this???