app restart event

Hi, guys!

I need help.
I have app and i need get event if this app restarted via refresh button in browser, how do it?

Sorry for my English :wink:


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

Thank you for the last link. I used singly the refresh() method and this annotation, but not together :slight_smile: