Hello everyone,
I try to implement a Simple Grid where a user can select a row and a form opens. For this I copied the code from (GitHub - vaadin/bookstore-example: Example Vaadin project available at vaadin.com/start) which works great. But now I want to check if the user leaves a dirty form when the form closes (onNavigation, onRowSelect) I took the example from here How do I warn user when leaving a modified form - Vaadin Cookbook to accomplish this. And it works when the user clicks on an navigation item. But when the user clicks on an Item on the grid the whole state of my view changes. I tried to create a workaround by storing the changes in a variable. When the user want to cancel the action i refresh the page and load the form bindings with the changes. But when I do that I get a dialog loop when the user clicks on the navigation.
Anyone has a clue how to implement this? Shouldn’t be that hard as it is a common feature.
Best Regards