I am using the dataExporter from primeFaces to export the contents of a dataTable into pdf. The problem is that the pdf does not bring the name of the columns, just the content. In the examples I've seen in the showcase, it captures the column names and table title if any.
Here's how I'm using the tag:
<p:dataExporter type="pdf" target="idDatabela" fileName="relatorio" pageOnly="true" />