Parts-in-Place / Vaadin_TableExport

Automatically exported from code.google.com/p/tableexport-for-vaadin
0 stars 0 forks source link

Handle generated table columns #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
With this version I still get NullPointerExceptions in ExcelExport#addDataRow. 
I can get around this problem by temporarily collapsing the generated column 
that causes this problem, but maybe it's possible to avoid this at all?

Since I'm using several generated columns in my tables, I would also like to 
know if the Excel Export can show the content of the generated columns instead 
of the content of the container column.

Original issue reported on code.google.com by jnas...@gmail.com on 8 Sep 2011 at 6:05

GoogleCodeExporter commented 8 years ago
This is a bit trickier to fix.  Table.ColumnGenerator provides no way to get at 
the value of the generated cell.  Created a new class ExportableColumnGenerator 
which each generated column must implement, in order for it to be exported, if 
it is visible.

There should no longer be NullPointerExceptions for generated columns 
regardless of whether they are ExportableColumnGenerator or not.

Original comment by jnas...@gmail.com on 8 Sep 2011 at 7:55