0

*我将在我的数据表的标题中添加图标,但是当我执行程序时,图标不显示他出现 {Exporters}。我使用 jsf 2.2.0 primeFaces 5 eclipce juno 这是我的代码视图:

  <p:dataTable id="tbl" var="produit" editable="true" value="#{produitBean.produits}"
    paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks {NextPageLink} {LastPageLink} {Exporters} "
      paginator="true" rows="10" style="margin-bottom:20px">
    <f:facet name="{Exporters}">
     <h:commandLink>
        <h:graphicImage library="images" name="excel.png" width="24" />
        <p:dataExporter type="xls" target="tbl" fileName="produits" />
    </h:commandLink>  
4

1 回答 1

0

您使用的是哪个版本的 PrimeFaces?此功能仅在 5.0.2 版本中可用:

http://blog.primefaces.org/?p=3194

例如,如果您拥有 5.0 社区版本,您将无法使用它。

于 2014-09-18T22:15:32.310 回答