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.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

app restart event

Иван Осипов
8 years ago Aug 04, 2014 12:02pm
Marko Grönroos
8 years ago Aug 04, 2014 1:19pm


If by application restart you mean restarting the servlet or user session, they aren't restarted as such, as is described in the application lifecycle section in the book. Normally, a new UI instance belonging to the same user session is created when the refresh button is clicked.

However, if the @PreserveOnRefresh annotation is specified for the UI, its current state is simply reloaded in the browser. You can catch that event by overriding the refresh() method, as described here.

Last updated on Aug, 4th 2014
Иван Осипов
8 years ago Aug 04, 2014 2:44pm