I have implemented org.primefaces.model.SelectableDataModel
.
Now when rendering my <p:dataTable>
based on the SelectableDataModel
I add a column with checkboxes by using:
<p:column selectionMode="multiple" />
For some rows I do not want the checkbox to appear, based on some attribute of the row.
I cannot see a way to do this. Is it possible with out the box Prime Faces functionality ?
Best Answer
You can disable the checkbox:
The check box is now disabled, however, visible. Hide disabled checkbox with CSS: