<h:head></h:head>
<h:form >
<h3>Dynamic Data table example</h3>
<p:dataTable id="tbl" var="dizgi" value="#{viewEmployeesManagedBean.dizgi}">
<f:facet name="{Exporters}">
<h:commandLink>
<p:graphicImage library="images" name="excel.png" width="24" />
<p:dataExporter type="xls" target="tbl" fileName="dizgi" />
</h:commandLink>
</f:facet>
<p:column headerText="AgentCode">
<h:outputText value="#{dizgi.agentCode}" />
</p:column>
<p:column headerText="Date">
<h:outputText value="#{dizgi.date}" />
</p:column>
<p:column headerText="ticket_sold">
<h:outputText value="#{dizgi.ticket_sold}" />
</p:column>
<p:column headerText="net_usd_sale">
<h:outputText value="#{dizgi.net_usd_sale}" />
</p:column>
<p:column style="text-align: center">
<f:facet name="header">
<h:outputText value="Details" />
</f:facet>
<h:graphicImage value="../resources/images/details.png" />
</p:column>
</p:dataTable>
<h3>Export Page Data Only</h3>
<h:commandLink>
<p:graphicImage library="images" name="excel.png" width="24" />
<p:dataExporter type="xls" target="tbl" fileName="dizgi" pageOnly="true"/>
</h:commandLink>
</h:form>
</html>
这是代码。我创建了具有文本和图像的数据表。它显示了它们
在localhost.It工作正常,但有一个问题。当我导出
datatable,在excel图像列中是空的。问题是什么人?任何
建议?