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:
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