aspose file tools
The moose likes JSF and the fly likes highlight first row in datatable onload Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "highlight first row in datatable onload" Watch "highlight first row in datatable onload" New topic
Author

highlight first row in datatable onload

Aparna Ram
Ranch Hand

Joined: Jan 27, 2006
Posts: 59
Hi,

I would like to highlight the first row in my datatable, onloading of the page. How do I go about doing the same?



Thanks much.
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
Since you are using t:datatable you can try using rowIndexVar attribute in your datatable attributes. Check if your rowIndexVar == 0 for each row and specify your styleClass accordingly.
If you are looking to highlight the headers then use headerClass atrribute.

Hope this helps.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: highlight first row in datatable onload
 
Similar Threads
How to use datatable with no records in a list
how to retrieve a particular value from datatable
HTML table to JSF table
datatable with empty cells
h:panelGrid and thead rows