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?
If you set tableStyle or tableStyleClass attribute, it will add the css class to the table element.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With