How to conditionally style a row in a rich:dataTable

后端 未结 7 1451
攒了一身酷
攒了一身酷 2021-02-07 02:12

How can I change the style of a particular row based on a condition? I can use JSF EL in rich:column style class attribute, but I have to write for each column. I want to change

7条回答
  •  伪装坚强ぢ
    2021-02-07 02:41

    You can use the dataTables columnClasses and rowClasses properties.

    That way you can produce the result which is shown here

提交回复
热议问题