Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

formatting dataTable  RSS feed

 
Ahmed Barradah
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am writing a JSF application, where I am using a dataTable tag to prsesnt a collection of beans. However, I need to color certain table cells. I tried to use CSS and StyleClass but I only get to color the fonts inside the not the whole cell. Btw, I don't want to use the oddrow or evenrow becuase I am coloring the cells based on some specific values and I managed to accomplish that but only the fonts that get colored. Is there something in JSF that can allow me to color the whole cell?

Best regards,
 
Dave Boyd
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check out

www.jenia.org

dataTools project
 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ahmed, I am having the same problem trying to find a solution. Check out this thread:

http://www.coderanch.com/t/211694/JSF/java/Specifying-row-classes-dataTables

If you find a solution please tell me. I need to change styles for whole rows and individual cells.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!