Hi everyone! Maybe someone can help me with this. I’ve defined a new container C inherited from BeanItemContainer. C is linked to a Table T. Also there is another servlet (apart from Vaadin servlet) which is used to add new items to C. The problem is, although C gets updated and ItemSetChangeEvent gets fired properly, T is not refreshed until I do something like sorting it o clicking on one of its items. Note that ItemSetChangeEvent is received by T only after I do the latter.
How can I do to get T refreshed instantly? I’ve been looking to the source code but I can’t seem to find an answer.
The messaging between client and server is a one way street in Vaadin. The user does something and the browser takes contact to the server. The server then replies and the browser is updated. The server can not take contact to the browser. Thus, changes that happen on the server, not triggered from the browser, will only go to the browser when the user does the next action and the client takes contact to the server.
So there is no way to do this magically. You have to options here. Use the
Refresher component that makes the browser update it’s state from the server every second or so, or vote up on
Uservoice that there should be Push implemented into Vaadin.