This content has been marked as final.
Show 1 reply
-
1. display rows or columns in different color based on a condition
ilya40umov Jan 25, 2011 5:10 AM (in response to techbrainless)There are two options for you which I know:
1) Use rowClasses attribute of rich:dataTable
rowClasses false false javax.el.ValueExpression
(must evaluate tojava.lang.String
)Comma-delimited list of CSS style classes that will be applied to the rows of this table. A space separated list of classes may also be specified for any individual row. Thes styles are applied, in turn, to each row in the table. For example, if the list has two elements, the first style class in the list is applied to the first row, the second to the second row, the first to the third row, the second to the fourth row, etc. In other words, we keep iterating through the list until we reach the end, and then we start at the beginning again. 2) Use styleClass attribute of rich:column where you can use EL expression like #{student.grade == 'A Grade' ? 'css1' : 'css2'}
styleClass false false javax.el.ValueExpression
(must evaluate tojava.lang.String
)Assigns one or more CSS class names to the component. Corresponds to the HTML "class" attribute.