Initially, I've a JSF datatable 2.0 as follows:
<h:dataTable value="#{bean.items}" var="item" styleClass="table table-hover">
Which looks like this:
I wanted to use row selection, so I switched to PrimeFaces 4.0 datatable:
<p:dataTable value="#{bean.items}" var="item" styleClass="table table-hover"
rowKey="#{item.id}" selection="#{bean.selectedItem}" selectionMode="single">
Which looks like this:
However, my style classes table
and table-hover
aren't being applied. How is this caused and how can I solve it?