I'm using PrimeFaces 8.0 and I want to merge the header of the two cells in one header (Title). Is it possible with PrimeFaces to do that?
<p:dataTable>
<p:column>
<f:facet name="header">input</f:facet>
<p:outputLabl value="input" />
</p:column>
<p:column>
<f:facet name="header">output</f:facet>
<p:outputLabl value="output" />
</p:column>
</p:dataTable>
The
p:dataTableshould be used for, well, data. You should not use it for layout. Technically you could group headers, see thedataTablegroup example in the showcase, but it's probably not what you want. You could usep:panelGridfor layout, but still, it renders a table, and tables shouldn't be used for layout in general.It's better to use PrimeFlex for layout. It even has a form layout to create responsive layouts easily.