Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
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;
}
});
Last updated on
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.
Last updated on
You cannot reply to this thread.