Prime面临出口数据不工作的问题



我试图从我的数据表导出数据,但当我按下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>

<p:commandLink>必须被<h:form>标签包围才能工作。如果不是这个问题,你能提供你整个页面的源代码和你正在使用的PrimeFaces版本吗?

<h:commandLink style=" text-align: right!important;"
    immediate="true" id="excelLinkId" ajax="false" >
        <p:dataExporter type="xls" target="myTable" fileName="myExcel" />
</h:commandLink>

最新更新