Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Programmatically open a new browser window
How to I programmatically open a new browser window (or tab)? In prevision versions, we have the following method in the
page.open(url, "_blank", true);
handleRequest (of the
RequestHandler) could handle it.
I'm not sure how that would be different with
Page.open? The request handler chain is processed in the same way regardless of the Framework version, if I understand correctly. You could pass some URL parameters there if you wanted some dynamic behavior.
Ok, the request handler chain is called and that solves my problem. Thank you.
For anyone looking at this thread, the framework now has
UI.getCurrent().getPage().open(String url) to open a new browser window programatically.