Dynamicly bind generated column

Hi everyone,

I’m having trouble binding by data dynamicaly over generated tabel column. Here is my code:

for (DynamicFieldDescriptorInterface currentColumn : columns) {                        
            addContainerProperty(
                    currentColumn.getFieldID(),
                    currentColumn.getFieldClass(), //also tried with Button-class of vaadin
                    currentColumn.getDefaultValue(),
                    currentColumn.getFieldName(),
                    createColumnIcon(currentColumn.getFieldID()),
                    Align.valueOf(currentColumn.getFieldAlign())                    
                    );
            visibleColumns.add(currentColumn.getFieldID());
            if (ButtonModel.class.equals(currentColumn.getFieldClass())) {                
                addGeneratedColumn(currentColumn.getFieldID(), new ButtonModelColumnGenerator(currentColumn.getFieldID()));
            }
        }

and here is ButtonModelColumnGenerator:

private final String propertyId;
    
    public ButtonModelColumnGenerator(String propertyId) {
        this.propertyId = propertyId;
    }

    @Override
    public Component generateCell(Table source, Object itemId, Object columnId) {
        System.out.println("generateCell : " + itemId + " column " + columnId);        
        Property prop =
            source.getItem(itemId).getItemProperty(propertyId);
        if (prop.getType().equals(ButtonModel.class)) {
            ButtonModel btModel = (ButtonModel) prop.getValue();
            ClickListenerAdapter l = new ClickListenerAdapter(btModel);
            Button bt = StandardWidgetCreator.createButtonWithCaption(THEME_PATH + btModel.getId() + ".png", btModel.getCaption(), l);            
            return bt;            
        }        
        return null;
    }

“generateCell”-method is not called at all, no other contents are shown.

If I deactivate generated column, works again, but I have toString for my special objects.

Thanks in advance.