Exporter ignores exportFunction from column

Community Driven Extensions Project
Post Reply
Hamsterbau
Posts: 388
Joined: 28 Dec 2011, 17:44

01 Sep 2017, 20:18

Hi,

i got the following problem, using the latest version of primefaces extensions (6.1.0) with Primefaces (6.1). If i use the original "Exporter" shipped with Primefaces, columns with exportFunction will be handled correctly and the downloadable file (file.xls for example) will have the data returned by this function, if available.

Primefaces Extention Exporter, on the other hand, ignores this optional setting and always returns the cell value defined under the column tag. Is this a known limitation or simply a bug, which will be fixed soon?
My problem with complex datatables is, that in some cases you cannot export the stuff from a table cell directly and the Primefaces Exporter has the ability to overcome this limitation by using exportFunctions. But Primefaces Exporter do not has the neat customization features like the Primefaces Extension Exporter :?

So, currently i have to decide:
  • Customizable cell value output (Primefaces Exporter) or
  • Customizable Exporter (Primefaces Extension Exporter)
but not both.

Would be nice if Primefaces Extension Exporter could also make use of exportFunction.

Have a nice day

Daniel
Primefaces 6.1.8 (PF Extensions 6.1.5)
JSF: Mojarra 2.2 (Spec 2.2) - running on WildFly 10.1.0.Final

User avatar
Melloware
Posts: 390
Joined: 22 Apr 2013, 15:48

01 Sep 2017, 21:11

You are correct. PFE was never updated to handle the new exporter function. Feel free to report on our GitHub issues page...

https://github.com/primefaces-extension ... com/issues
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 6.1.X / PF Extensions 6.1.5

Hamsterbau
Posts: 388
Joined: 28 Dec 2011, 17:44

01 Sep 2017, 22:51

Thanks for the answer, but i cannot add an issue because of no existing github account 🙁
Primefaces 6.1.8 (PF Extensions 6.1.5)
JSF: Mojarra 2.2 (Spec 2.2) - running on WildFly 10.1.0.Final

tandraschko
PrimeFaces Core Developer
Posts: 3270
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

02 Sep 2017, 09:13

Creating a account takes ~1min :P
Always Bet On Prime (+ Extensions)!

Thomas Andraschko
PrimeFaces Developer | PrimeFaces Extensions Founder
Apache OpenWebBeans PMC | Apache DeltaSpike PMC | Apache MyFaces PMC

Personal Blog: http://tandraschko.blogspot.de/

Hamsterbau
Posts: 388
Joined: 28 Dec 2011, 17:44

02 Sep 2017, 09:53

I know, i will do it - you can never have enough accounts :roll:
Primefaces 6.1.8 (PF Extensions 6.1.5)
JSF: Mojarra 2.2 (Spec 2.2) - running on WildFly 10.1.0.Final

User avatar
Melloware
Posts: 390
Joined: 22 Apr 2013, 15:48

02 Sep 2017, 16:07

Fixed! And I put a SNAPSHOT release link in the ticket if you want to download the JAR and give it a try.

https://github.com/primefaces-extension ... issues/481
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 6.1.X / PF Extensions 6.1.5

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Yahoo [Bot] and 1 guest