JPAContainer add component in table ?

Hello

I’m looking for a how to add a component in my table. My table is using a JPAContainer as datasource. I’m trying using addContainerProperty but doesn’t work and returns an exception.

how I do to add a component Button in table ?

maybe you can try table.addGeneratedColumn()?

are you have some example ?

[code]
table.addGeneratedColumn(“generated”, new ColumnGenerator() {

@Override
public Object generateCell(Table source, Object itemId, Object columnId) {
    return new Button(itemId+","+columnId);
}

});
[/code]since “A generated column is a column that exists only in the Table, not as a property in the underlying Container. It shows up just as a regular column.”, so it doesn’t matter what kind of container you are using.

Thanks, now works ! :smiley: