Hi,
I noticed that the ExcelExport doesn't want to export TreeTables, only DataTables. It throws the following error (on 3.0.M2-SNAPSHOT):
Unsupported datasource target:"org.primefaces.component.treetable.TreeTable", exporter must target a PrimeFaces DataTable.
I checked the ExcelExporter code, and it seemed to me that it should be quite possible to export TreeTables as well, since the exporter only needs UIData methods like getFirst(), setRowIndex(). But the DataExporter checks strictly via "instanceof DataTable". So, if you refactor the code to use UIData instead of DataTable, I think it would be possible to export both, TreeTable and DataTable. That'd be cool!
Cheers,
Chet.
DataExport on TreeTable
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I have found this interesting project takes a look.
https://github.com/rdicroce/jsfexporter
May help you
https://github.com/rdicroce/jsfexporter
May help you
-
- Information
-
Who is online
Users browsing this forum: No registered users and 50 guests