Table HTML Header bug or intended?

Hi,

table headers didn’t get a classname (v-table-header-cell) if the column didn’t contain a String.class.
Is this intended?

Vaadin:

Table table = new Table();

table.setPageLength(5);
table.setImmediate(true);

table.addContainerProperty(TABCOLID_APP, String.class, null);
table.setColumnExpandRatio(TABCOLID_APP, 0.50f);
table.setColumnHeader(TABCOLID_APP, "Apps");

table.addContainerProperty(TABCOLID_INFO, Button.class, null);
table.setColumnExpandRatio(TABCOLID_INFO, 0.25f);
table.setColumnHeader(TABCOLID_INFO, "Infos");

table.addContainerProperty(TABCOLID_BUTTON, Button.class, null);
table.setColumnExpandRatio(TABCOLID_BUTTON, 0.25f);
table.setColumnHeader(TABCOLID_BUTTON, "Button");

HTML:


<td class="v-table-header-cell">.....</td>
<td>.....</td>
<td>.....</td>

Workaround:

Override the incomparable classes and implement Comparable.

Vaadin: 6.8.3

It’s a bug, please see
this ticket
.

Actually there is already a ticket (
#8218
), with a note that
#8219
should be fixed first.

Also
#7858
for TreeTable might be related to this.

EDIT: Didn’t read Teppo’s post carefully enough - link to same ticket.