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.
Reload page
Hi,
I need to reload the page.
Is there another way most compliant with vaadin that javascript call like :
mainWindow.executeJavaScript("window.location.href=window.location.href;");
?
Thanks.
I'd say that's the easiest way of doing it.
Don't know about any other more "compliant" way of doing it. The only thing I can think of now is sending a "Location" header within a HTTP response, maybe using a TransactionListener.
Hello,
does this operation
mainWindow.executeJavaScript("window.location.href=window.location.href;");
will work on all modern browsers?
(I want to use this 'trick' in production but I am not shure about how riski it is.)
Thanks,
Arthur.