kbnsln
kbnsln

Reputation: 21

JSF and Richfaces rich:select and f:selectItems

how to highlight elements in a list with different colors using JSF and Richfaces

Upvotes: 0

Views: 553

Answers (1)

ElderMael
ElderMael

Reputation: 7101

You may try using the jQuery odd and even selectors on table row selectors shown in the rich faces docs i.e. .rf-dt-r and apply a different class.

something like:

<script>
$(document).ready(function()
{

  //for table row
  $("tr:even").css("background-color", "#F4F4F8");
  $("tr:odd").css("background-color", "#EFF1F1");
});
</script>

As seen in this page.

Upvotes: 1

Related Questions