How to export a treeTable

UI Components for JSF
Post Reply
CarlotaVina
Posts: 8
Joined: 29 Jul 2017, 06:33

16 May 2018, 11:35

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?

Dweller
Posts: 1
Joined: 16 May 2018, 12:30
Location: https://thehomedweller.com/

16 May 2018, 12:35

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

CarlotaVina
Posts: 8
Joined: 29 Jul 2017, 06:33

16 May 2018, 13:15

I don't understand the difference between pe:exporter and p:dataExporter

kukeltje
Expert Member
Posts: 9566
Joined: 17 Jun 2010, 13:34
Location: Netherlands

16 May 2018, 20:40

The difference is the same as between an h:datatable and a p:datatable. Completely different components.

CarlotaVina
Posts: 8
Joined: 29 Jul 2017, 06:33

17 May 2018, 10:35

Thanks a lot.

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

kukeltje
Expert Member
Posts: 9566
Joined: 17 Jun 2010, 13:34
Location: Netherlands

18 May 2018, 16:04

No idea for treetable but for the datatable it is either the PrimeFaces or PrimeFaces extensions exporter

bresella
Posts: 5
Joined: 28 Jul 2014, 17:41

11 Oct 2019, 13:54

I have found this interesting project takes a look.

https://github.com/rdicroce/jsfexporter

May help you

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests