Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Datatable Custom Coloring
- <p:dataTable style="width: 100%;" id="dTable" var="tt" value="#{aList}" paginator="true" rows="15"
- selection="#{selected}" selectionMode="single"
- onRowSelectUpdate="mf:tabcontent"
- rowStyleClass="#{tt.state.intValue() le 2 ? 'waiting' : null}"
- private Byte state;
- .waiting{
- background-image: none !important;
- color: black !important;
- }
- background-color: #6CE26C !important;
- .waiting{
- background-color: #6CE26C !important;
- background-image: none !important;
- color: black !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment