I have a web application, which should - ideally - run all the day. That is, the user goes to the web site, logs in and then uses this application during the entire business day.
He logs out only at the end of the day, when he leaves the office.
Question: How can I setup a Vaadin application to support this kind of work, i. e. to prevent “Session expired” errors?
Imagine I use the Refresher plugin and the user opens a web page and does nothing for a while.
But on the server something happens, which I want to display to the user (even if he doesn’t reload the page).
I assume that if I use the Refresher add-on, I will be able to do this (e. g. display some message box, which is triggered by the server, not by the user).
Well, the Refresher makes a request to the server and if the server has updated its UI state after the previous request, it will be updated in the browser. You may need to set the refresh rate rather short.
A more responsive solution is to use the
ICEPush add-on, which can be used to update the browser immediately when the server has new data to show.