如何在netbeans Web应用程序项目中使用primefaces扩展jar文件

时间:2013-09-15 13:21:42

标签: html

我正在尝试使用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> 

1 个答案:

答案 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文件的版本。