Guest User

Untitled

a guest
Apr 25th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment