Color the rows of datatable based a condition in JSF 2

后端 未结 2 1353
轮回少年
轮回少年 2020-12-19 09:40

I\'d like to change the background color of rows based on a condition.



        
2条回答
  •  轮回少年
    2020-12-19 10:38

    Use the rowStyleClass attribute of the instead of rowClasses. The rowStyleClass is evaluated on a per-row basis where the var="entry" is available, while the rowClasses is only evaluated on a per-table basis.

    
    

提交回复
热议问题