jsf - Primefaces Datatable coloring row -


closeditem returns boolean. add datatable

rowstyleclass="#{(res.closeditem) eq true ? 'closed' : null}" 

my css

<style type="text/css">     .closed     {         background-color: #6ce26c !important;         background-image: none !important;         color: #000000 !important;     } </style> 

but doesn't work, pls help.

try:

rowstyleclass="#{res.closeditem ? 'closed' : ''}" 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -