Im using primefaces 3.5 and I have a p:dataTable with some rows and data and i would like to export these data into a xls file or something.
I used the code:
<p:commandButton id="exportBtn" icon="ui-icon-extlink" styleClass="statisticsMenuButton" ajax="false" title="#{msg.general_export_as_xls}">
<p:dataExporter type="xls" target="cc-eventListTable-eventList" fileName="statistics"/>
</p:commandButton>
This works fine!
My problem is, i would like to have different cell text in the exported file and in the browser dataTable.
e.g In the exported xls file i need other date formatting then in the browser data table. Otherwise the text in the browser cell is too long!
I tried to add a additional column with rendered="false" and exportable="true" only for exported table. But unfortunately it does not work!
Does anybody have an idea how to do that?