Exporter - Multiple tables within ui:repeat

Community Driven Extensions Project
AzoJason
Posts: 12
Joined: 14 Mar 2014, 10:54

16 Apr 2015, 10:08

I have created a runnable maven project and put it here as a .rar file:
http://s000.tinyupload.com/?file_id=767 ... 1918612665
sudheer wrote:Ok.Is it works good with PF dataExporter(ofcourse it won't support multi target).Please Create a runnable maven proj to replicate the issue.
What do you mean with "ofcourse it won't support multi target"? :shock:
Is it possible to make this work? :geek:

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

17 Apr 2015, 21:18

AzoJason wrote:I have created a runnable maven project and put it here as a .rar file:
http://s000.tinyupload.com/?file_id=767 ... 1918612665
Ok.I will try to test the project in my free times.
AzoJason wrote:What do you mean with "ofcourse it won't support multi target"?
I requested you to test with p:dataExporter component as well.I mean currently PF dataExporter won't support multi target feature.
AzoJason wrote:Is it possible to make this work?
We will check the possibility first or even you can make a pull request.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

AzoJason
Posts: 12
Joined: 14 Mar 2014, 10:54

22 Apr 2015, 12:01

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? :shock:

AzoJason
Posts: 12
Joined: 14 Mar 2014, 10:54

03 May 2015, 22:02

Sorry for double posting.

Were you able to check the possibilty yet?
Because i need to go and look for alternatives, if its not possible. :|

marealta
Posts: 3
Joined: 14 Apr 2015, 16:53

09 Jun 2015, 09:09

It seems not working with pe:exporter.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests