Reputation: 43
I'm pretty new with vaadin framework, all working fine until... table header don't show properly,... I'm working on a portlet that runs on exoplatform, I'm using vaadin 6, my table only display the first header, I tried everything but nothing seems to work. Here is my code:
table = new Table("my table");
table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_EXPLICIT);
table.setPageLength(9);
table.setWidth("100%");
table.addContainerProperty("sad", String.class, null);
table.addContainerProperty("asd", Integer.class, null);
table.addContainerProperty("qwerty", Integer.class, null);
table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_EXPLICIT);
table.setColumnHeader("sad", "sad");
table.setColumnHeader("asd", "asd");
table.setColumnHeader("qwerty", "qwerty");
Upvotes: 3
Views: 484
Reputation: 170
I had the same problem, try wrap your Table to Panel. It works for me.
It seems tables in VerticalLayout overlaps header of the next table, so just first header is shown. It is obvious when width of tables is different - then you see how one table overlaps header of the table below.
Hope that helps.
Upvotes: 0