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: 8952
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.
Ronald van Kuijk
______________________________
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules
Beginners: https://jsf.zeef.com/bauke.scholtz

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: 8952
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
Ronald van Kuijk
______________________________
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules
Beginners: https://jsf.zeef.com/bauke.scholtz

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests