I have datatable with multiple checkbox selection (PF 3.3.1). I’ve defined column:
<p:column selectionMode="multiple"/>
I would like add some text or icon to header and I tried with headerText column attribute and with facet:
<f:facet name="header">
<h:outputText value="Header text" />
</f:facet>
But it doesn’t work.
It is possible to modify header of checkbox selection column?
In case you want that feature badly and don’t mind to use jquery, You could do something like
I tested it on primefaces shocase and it works (run these command at the console)
note that
#form\\:multiCarsshould be changed with your table idand
tr:eq(2)refers to the third row in the table , cause in showcase the row with the headers is thirdto change the width of that selection column you can use
I’m aware of the fact that its waaaay ugly , but it works 🙂
Also you will have to run this script after each ajax rendering of the table