Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.60 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Datatable Custom Coloring
  2. <p:dataTable style="width: 100%;" id="dTable" var="tt" value="#{aList}" paginator="true" rows="15"
  3.                                  selection="#{selected}" selectionMode="single"
  4.                                  onRowSelectUpdate="mf:tabcontent"
  5. rowStyleClass="#{tt.state.intValue() le 2 ? 'waiting' : null}"
  6.        
  7. private Byte state;
  8.        
  9. .waiting{
  10.     background-image: none !important;
  11.     color: black !important;
  12. }
  13.        
  14. background-color: #6CE26C !important;
  15.        
  16. .waiting{
  17.     background-color: #6CE26C !important;
  18.     background-image: none !important;
  19.     color: black !important;
  20. }