Is there any kind of solution for disable double click in a Button at the vaadin 7 ? Because if I clicked double at the button which opening a new pop up window, the window opening twice.
Not a wrong idea! I used this one a couple weeks ago.
But now I have to use this more than 200 other place. That is the reason why I try to find global solution.
Btw, thank you!
It might be possible to do a client-side extension for preventing a double click, but I’m guessing it’s still probably easier and more reliable to check that on the server side.
So, the solution for me.
I create handlingOpenWindow() method, which I call at the buttonClick. That method set the button setEnabled(false), and containing a window.addCloseListener where I change the button setEnabled(true). The method inside parameters are “Window window, Button button”.
Only one problem with this. I have to check the whole system where we are use window, which opening by button click.