从动态列的数据表中引用数据导出器 [英] Primefaces data exporter from data table with dynamic columns

查看:166
本文介绍了从动态列的数据表中引用数据导出器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人使用原始数据导出器组件成功地使用带有动态列的原型datatable?



在我的情况下,它会生成excel文件,但它是空的。 >

但是,如果我保持一切正常的datatable而不是datatable与动态列,生成的excel文件不为空。



我试图看看有人是否已经做到了这一点。

 < p:dataExporter /> 

< p:dataTable /> //(带动态列)

如果我不使用动态列,它可以正常工作。 / p>

我正在使用PrimeFaces 2.2.1,JSF 2.0,poi-3.2-FINAL.jar。

解决方案

抱歉,目前不支持 dataExporter 组件。



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



Cagatay Civici,Primefaces项目的首席开发人员。


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.

解决方案

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.

这篇关于从动态列的数据表中引用数据导出器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆