【发布时间】:2014-07-05 12:11:45
【问题描述】:
我试图从我的数据表中导出数据,但是当我按下 pdf 按钮时,它会刷新页面而不导出
<h:commandLink >
<p:graphicImage value="/images/excel.png" />
<p:dataExporter type="xls" target="dataTable" fileName="alarms" />
</h:commandLink>
<h:commandLink >
<p:graphicImage value="/images/pdf.png" />
<p:dataExporter type="pdf" target="dataTable" fileName="alarms"/>
</h:commandLink>
<h:commandLink >
<p:graphicImage value="/images/csv.png" />
<p:dataExporter type="csv" target="dataTable" fileName="alarms" />
</h:commandLink>
【问题讨论】:
-
您的项目中是否包含正确版本的 itext 和 poi 库?
标签: jsf primefaces data-export