I\'d like to change the background color of rows based on a condition.
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.
rowStyleClass
rowClasses
var="entry"