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?
I have a PrimeFaces <p:dataTable> and I want to specify a CSS class in
Share
If you set
tableStyleortableStyleClassattribute, it will add the css class to the table element.