tes001 / tableexport-for-vaadin

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

Hierachical container detects incorrectly #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce
1. Implement and instantiate custom container MyHierarchical implementing 
Container.Hierarchical
2. Create TreeTable and call setContainerDataSource with created instance of 
MyHierarchical
3. Try to export the table. There will be no hierarchical structure in exported 
Excel file

Expected behaviour:
Exported Excel file with hierarchical structure

Reproduces on vaadin-tableexport
1.2.9

Please provide any additional information below.
The problem is that hierarchical property is set if 
HierarchicalContainer.class.isAssignableFrom(table.getContainerDataSource().getC
lass()) but later the DataSource is being cast to Container.Hierarchical 
interface.

Original issue reported on code.google.com by smorygo....@gmail.com on 31 Jul 2014 at 12:08