Page 1 of 1

How to export a treeTable

Posted: 16 May 2018, 11:35
by CarlotaVina
I have a treeTable and I need to export to excel. I read about p:dataExporter.

Can I use dataExporter for treeTable?.

How can I export a p:treeTable to excel?

Re: How to export a treeTable

Posted: 16 May 2018, 12:35
by Dweller
In PrimeFaces extensions it is called pe:exporter. In PrimeFaces itself it is a p:dataExporter. So you use the wrong combination of namespace(-prefix) and tag name by using pe:dataExporter

Re: How to export a treeTable

Posted: 16 May 2018, 13:15
by CarlotaVina
I don't understand the difference between pe:exporter and p:dataExporter

Re: How to export a treeTable

Posted: 16 May 2018, 20:40
by kukeltje
The difference is the same as between an h:datatable and a p:datatable. Completely different components.

Re: How to export a treeTable

Posted: 17 May 2018, 10:35
by CarlotaVina
Thanks a lot.

One question more. What component do I have to use to export to excel a datatable and a treetable?

Re: How to export a treeTable

Posted: 18 May 2018, 16:04
by kukeltje
No idea for treetable but for the datatable it is either the PrimeFaces or PrimeFaces extensions exporter

Re: How to export a treeTable

Posted: 11 Oct 2019, 13:54
by bresella
I have found this interesting project takes a look.

https://github.com/rdicroce/jsfexporter

May help you