1

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.

Community
  • 1
  • 1
Ni12N
  • 123
  • 9

2 Answers2

1

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

T0oto0
  • 33
  • 5
  • my problem is the combination of those two :) i'm trying to figure my own custom exporter but no luck so far. thanks anyway – Ni12N Jul 11 '13 at 09:20
0

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.

Rasshu
  • 1,764
  • 6
  • 22
  • 53