我正在尝试使用primefaces扩展的导出器功能,以便我可以一次导出多个表但是。我收到以下错误: 元素“pe”dataExporter的前缀“pe”未绑定。
代码在这里
<h:commandLink>
<p:graphicImage value="../resources/images/excel.png" title=""/>
<pe:dataExporter type="xls" target="dailyShtSts" fileName="DailyCheckList" postProcessor="#{supportCrmIssuesTabController.postProcessXLS}"/>
</h:commandLink>
答案 0 :(得分:0)
您是否在标签html上声明了xmlns:pe =“http://primefaces.org/ui/extensions”?
无论如何你必须声明这个并在java build中添加jar(org.apache ... poi-xxx; poi-excelant-xxx; poi-ooxml-xxx; poi-scratchpad-xxx;以及xmlbeans-xxx)路径。
PS:xxx表示jar文件的版本。