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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Exit from vaadin 7 app
Hi:
How can I prevent from exit my vaadin 7 app when pressing "back" or "reload"? I don't know if this relates to the app or to the browser settings, but I would like it to be included in the app
thanks!!
Hi,
you can use ViewChangeListener to handle navigation events. Here's the example: https://vaadin.com/wiki/-/wiki/Main/View%20change%20confirmations
Best regards,
Sergey.
Thank you for your answer Sergey!!! ....Do you know a solutions that doesn`t involve Navigation?
​Thanks!!!
You are welcome. You could try various javascript solutions, but they might work only when you navigating from or reloading the whole page, not particular Vaadin view.
Best regards,
Sergey.
Thanks Sergey...
I just found an addon that solves the problem!!...https://vaadin.com/directory#!addon/beforeunload