Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add or change the class attribute of a JSF dataTable (primefaces)?

I have a PrimeFaces <p:dataTable> and I want to specify a CSS class in the generated HTML <table> element. If I use the styleClass attribute, then this will be added to the wrapping <div> instead of the <table>. How can I get it on the <table> instead?

like image 782
user465374 Avatar asked Feb 19 '23 06:02

user465374


1 Answers

If you set tableStyle or tableStyleClass attribute, it will add the css class to the table element.

like image 187
user465374 Avatar answered Apr 05 '23 16:04

user465374