• Post Reply Bookmark Topic Watch Topic
  • New Topic

Datatable - Test column value

 
Christophe Keteleer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, I am looking for a way in JSF to highlight a column value in a datatable if that column value fullfills a certain condition. Example: if column[3].value > 5 then background = red If you can help me, could you please give an explanation as complete possible and if possible a small example :$ thanks by advance
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use rowClasses and columnClasses to specify cell style. Like:

[ May 22, 2006: Message edited by: Bruce Jin ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess simple styleClass would work fine.
[ May 23, 2006: Message edited by: Adeel Ansari ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!