Out of sync

Hi, i am using LazyQueryContainer and everything is fine until i have deleted one of the last rows( index is about 300, page size is 50), and i got out of sync error.



        LazyQueryContainer container=new LazyQueryContainer(queryFactory, true, 50);
        container.addContainerProperty("title", String.class,  null);
        container.addContainerProperty("id", Long.class,  null);
        table.setContainerDataSource(container);

        ...

        table.addGeneratedColumn("action", new Table.ColumnGenerator() {
            public Object generateCell(Table source, final Object itemId, Object columnId) {
                final NativeButton b = new NativeButton("Delete");
                b.addListener(new Button.ClickListener() {
                    public void buttonClick(Button.ClickEvent event) {
 
                        LazyQueryContainer container = (LazyQueryContainer) table.getContainerDataSource();
                        container.removeItem(itemId);
                        container.commit();
                    }
                });
                return b;
            }
        });

Hi,

Seems like it sounds pretty much like
this bug
. If you are using Vaadin 6.7.6 - then your best bet is to update to >= 6.7.7.

HTH
sasha

Hi tnx for answering, i am using 6.7.8 version.

I guess the problem is in generated column. I have tried now to delete rows with extern button + selection, works fine. But as soon as i start clicking generated button or using generated checkboxes i get out of sync.