Label component in a Table

Hi,

I tried to follow the components inside a table example from the book http://vaadin.com/book/-/page/components.table.html#figure.components.table.components-inside

I had an issue with the Label class:


Table table = new Table();
table.addContainerProperty("My Label",            Label.class,     null);
Label lab = new Label("hello");
table.addItem(new Object[] {lab}, 1);

The table didn’t display the Label column. (I also had checkbox and textfield which were rendered)
So I move the Label column to TextField with readonly, which works.

Am I skipping something important ? Any idea how to get it working?

Eric
PS: I’m using groovy and grails if that matters…

Label is by default 100%. Does your label have a width defined? If not, the column might be too narrow to show. Just guessing, but try adding lab.setSizeUndefined()