Reload vaadin table

reloadvaadin

I have a Vaadin table in a View. There is a button to create a new row in the table, a subwindow opens which allows you to specify the new item and create it.
Once created a notification tells you it was created successfully, at this time I would like to reload the current UI (which is a View) so that the new element is visible (if pagination would make it visible).
I tried UI.getCurrent().markAsDirty(); before closing the subwindow but it does not work.

Best Answer

Finally I solved the problem by taking advantage of the Table method addItem. This works, although there must be more elegant solutions.

Related Topic