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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Force table to refresh
Hello Folks,
sorry to be a nuissance, but I have a problem which drives me crazy. I have a Table widget which is bound to a BeanContainer, which contains beans which change their values on their own.
Now, I try to refresh the container:
@Override
public void propertyChange(PropertyChangeEvent evt) {
/*myCollection.fireDelta();
myTable.setContainerDataSource(myC2);
myTable.setContainerDataSource(myCollection);
myCollection.fireDelta();
myTable.refreshRowCache();
myTable.markAsDirty();
myTable.setSortEnabled(false);
myTable.setSortEnabled(true);
myTable.setContainerDataSource(myTable.getContainerDataSource());
Page.getCurrent().getJavaScript().execute("javascript:vaadin.forceSync();");*/
HeiseBean b= new HeiseBean("XXXS", (float) 2100.0);
b.addPropertyChangeListener(this);
myTimer.schedule(b, 250, 250);
myCollection.addBean(b);
Page.getCurrent().reload();
}
Sadly, both versions of the code above do not do anything at all. The odd thing is that clicking the header of the table to force an update leads to ONE redraw, but subsequent ones are then ignored.
May I ask what is going wrong here. It cant be that there is no way to simply force a table to redraw itself.