Ni12N
Ni12N

Reputation: 123

Primefaces data export for nested datatables and dynamic columns

I have an outer DataTable that has only one column, and each row is a sub DataTable. The number of sub data tables varies based on number of elements of the list that is accepted from the outer database. In the sub datatables i use dynamic columns. I need to export the data that appears to pdf/excel. The primefaces exporter doesnt support nested datatables. i've seen this answer but it provides no answer to the dynamic columns issue: Primefaces dataExporter and nested dataTable Any help is welcomed, cause im on a tight deadline.

Upvotes: 1

Views: 2492

Answers (2)

Rasshu
Rasshu

Reputation: 1799

If exporting is really important, I suggest you create a pure table.

You could then call a method using iText (2.1.7 version should work). It offers the advantage of having full control over data exportation.

Upvotes: 0

T0oto0
T0oto0

Reputation: 33

You may have a look on Primefaces Extensions exporter. There are samples of code concerning export of subTables and dynamic columns

Upvotes: 1

Related Questions