【发布时间】:2015-03-06 07:48:47
【问题描述】:
我将 p:dataTable 的 paginatorTemplate 声明为:
<p:dataTable id="lazyDataTable" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown} {Exporters}">
声明“出口商”:
<f:facet name="{Exporters}">
<h:commandLink>
<p:graphicImage libray ="images" name="excel.png"/>
<p:dataExporter type = "xls" target="lazyDataTable" fileName="report" />
</h:commandLink>
<h:commandLink>
<p:graphicImage library="images" name="pdf.png"/>
<p:dataExporter type = "pdf" target="lazyDataTable" fileName="report" />
</h:commandLink>
</f:facet>
我希望导出器与表头右对齐,但它出现在表头的中间,如下所示:
如何将其对齐到标题的右侧,谢谢!
【问题讨论】:
标签: primefaces datatable exporter