0

zk exporter exports badly with mold paging. [closed]

asked 2014-04-02 04:55:56 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

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

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by chillworld
close date 2015-03-26 16:48:46

Comments

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 )edit

but 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 )edit

The 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

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-02 13:02:59 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

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.

link publish delete flag offensive edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-04-02 04:55:56 +0800

Seen: 24 times

Last updated: Apr 02 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More