This is a clumsy question!!! :)
Can this be made possible somehow? Can <p:dataTable>
(whatever lazily loaded or otherwise) be updated without updating its headers (The contents (rows) inside the table along with the footer should be updated without updating the table headers)?
Updating of <p:dataTable>
may be triggered by any UICommand
like <p:commandButton>
, <p:commandLink>
and alike.
Something like this can be visualized, when we edit/update rows using <p:cellEditor>
in conjunction with <p:rowEditor/>
in <p:dataTable>
(not sure about single cell editing).
<p:dataTable id="dataTable" var="row" value="#{bean}" ...>
<p:column headerText="Header 1" sortBy="#{row.property1}" filterBy="#{row.property1}">
....
</p:column>
<p:column>
<!--They may be our own headers-->
<f:facet name="header">
Header 2
...
</f:facet>
....
</p:column>
...
</p:dataTable>