-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
I have a grid in mvvm, with template and autopaging : mold="paging"
Zk exporter can export a grid, what he does nicely as seen in this small talk.
Now only with autopaging it goes completly wrong. He export only one page (even if you have all the data in a ListModelList). We don't have the option to choose if we want all the data or just one page.
Other overloaded methods of exporter.export
doesn't do easily what you want.
example :
You need to implement a RowRenderer if you want to give the whole data to export, but even that renderer is an other class then the normal renderer, and we used template(just like I want to export) so why should I write a renderer?
And even the headers, I can't get them from the grid what I should pass to the export method.
Is there a solution that we can export the whole grid? (cloning and setting mold to null doesn't work)
Greetz chill
I resolved it using the exporter.export(String[],Collection<D>, RowRenderer<Row,D>,OutputStream);
Lot of work to implement all the things and if someone change the zul, the excel shall not be updated.
But on the other hand, refactoring the excel is very simpel now.
Greetz chill.
Asked: 2014-04-02 04:55:56 +0800
Seen: 25 times
Last updated: Apr 02 '14
I don't have an answer to your problem, but how did you import the exporter?
I tried downloading the Maven Project, imported it to Eclipse.
The first "error" was in the pom.xml
Missing artifact org.zkoss.zk:zkex:jar:6.5.5
So i changed the Version to 7.0.1
IngoB ( 2014-04-02 09:09:47 +0800 )editbut now I got alot of errors ... for example "The method getCellValueSetter(Class<T>) of type CellValueSetterFactoryImpl must override a superclass method"
IngoB ( 2014-04-02 09:10:29 +0800 )editThe exporter project is a part of our project, and I think mine old collegue did some changing in it to :)
chillworld ( 2014-04-02 10:30:30 +0800 )edit