Consider the following example:
Code: Select all
<p:dataTable id="dtbCars"
widgetVar="wgvDtbCar"
value="#{mbTest.listCars}"
var="car"
selection="#{mbTest.car}"
selectionMode="single">
<f:facet name="header">
<table>
<tbody>
<tr>
<td style="text-align: left;">
<h:outputText value="List Cars"/>
</td>
<td style="text-align: right;">
<h:panelGroup>
<h:outputText value="Filter"/>
<h:inputText id="globalFilter"
onkeyup="wgvDtbCar.filter()"
style="width:250px"/>
</h:panelGroup>
</td>
</tr>
</tbody>
</table>
</f:facet>
<p:column headerText="Car"
filterBy="#{car}">
<h:outputText value="#{car}"/>
</p:column>
</p:dataTable>
But when a "p:dataTable" with this option "selectionMode=single", the "table" of "facet" assumes the same of CSS of the "p:dataTable" PrimeFaces. It is as if it were possible to select the facet.
This would be a problem