I requested you to test with p:dataExporter component as well.I mean currently PF dataExporter won't support multi target feature.
Oh, well i tried with p:dataExporter like this.
Code: Select all
<ui:repeat var="dummyList" value="#{exportBean.dummyList}"
varStatus="varStatus" id="container">
<p:dataTable id="suchTabelle" var="dummyObject" scrollable="false"
rowIndexVar="rowIndex" value="#{dummyList}"
style="margin-bottom:5px;" resizableColumns="true"
paginatorTemplate="{header}"
paginatorPosition="bottom" paginator="true" emptyMessage="leer"
widgetVar="searchTable">
<f:facet name="{header}">
<h:outputLabel value="table #{varStatus.index+1}" />
<h:commandLink>
<h:outputLabel value="XLS" />
<p:dataExporter type="xls" target="suchTabelle" fileName="cars" />
</h:commandLink>
</f:facet>
<p:column>
<f:facet name="header">
<h:outputLabel value="#{label.name}" />
</f:facet>
<h:outputText value="#{dummyObject}" />
</p:column>
</p:dataTable>
</ui:repeat>
This works, but as you said the p:dataExporter does not support multiple tables.
Since the p:dataExporter works within an ui:repeat, i hope there is a way for the pe:dataExporter, too.
Ok.I will try to test the project in my free times.
We will check the possibility first or even you can make a pull request.
Oh, that would be amazing, if you could look into it.
A pull request? You mean getting the code and trying to implement it myself?