Primefaces data exporter from data table with dynamic columns

空扰寡人 提交于 2019-12-10 22:57:13

问题


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:


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.



来源:https://stackoverflow.com/questions/7002976/primefaces-data-exporter-from-data-table-with-dynamic-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!