【发布时间】:2015-12-01 10:24:54
【问题描述】:
<p:panel id="panelwv" style="padding:0px;right:600px;"
widgetVar="panelwv" visible="false" closable="true"
toggleable="true">
<f:facet name="header">
<h:outputText value="Save as " />
<h:commandLink>
<p:graphicImage value="resources/images/csv.png" />
<p:dataExporter type="csv" target="panelwv"
fileName="Monthly_Summary" />
</h:commandLink>
<h:commandLink>
<p:graphicImage value="resources/images/pdf.png" />
<p:dataExporter type="pdf" target="panelwv"
fileName="Monthly_Summary" />
</h:commandLink>
</f:facet>
</p:panel>
面板有动态数据。我想导出数据 pdf 和 csv 格式。我在 primefaces 中使用<p:dataExporter> 标签,但它显示不支持的数据源错误。请提出任何解决方案以导出<p:panel> 中的数据。
【问题讨论】:
-
这只是不支持...对于“建议”如何导出 pdf 页面,请尝试 google。像 xhtmlrenderer 这样的东西可能会有所帮助
-
仍然不支持,不支持 panelgrid,不支持面板,不支持数据表和(afaik)treetable 和数据列表
标签: jsf primefaces panel