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.