Primefaces data exporter from data table with dyna

2019-07-13 04:09发布

Has anyone used primefaces data exporter component successfully with primefaces datatable with dynamic columns?

In my case, it generates the excel file but it is empty.

But if I keep everything same and just normal datatable instead of datatable with dynamic columns, the generated excel file is not empty.

I am trying to see if somebody has done this.

<p:dataExporter />
and
<p:dataTable /> //(with dynamic columns)

It works fine if I don't use the dynamic columns.

I am using PrimeFaces 2.2.1, JSF 2.0, poi-3.2-FINAL.jar.

1条回答
虎瘦雄心在
2楼-- · 2019-07-13 04:47

Sorry but this is not currently supported for the dataExporter component.

http://forum.primefaces.org/viewtopic.php?f=3&t=12133&p=38149&hilit=dataExporter+dynamic#p38149

This is coming straight from Cagatay Civici, lead developer on the Primefaces project.

查看更多
登录 后发表回答