Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Open ui without BrowserWindowOpener
I have an app with 3 different uis: MainUI, WindowUI and ExtraWindowUI. From the MainUI the user can open the WindowUI via a Mouse click on a button. This WindowUI gets opened via the BrowserWindowOpener. Inside the WindowUI, the user can open the ExtraWindowUI with a button click (also via BrowserWindowOpener).
So far, so good. My requirements are, that this ExtraWindowUI should also open automatically when a special option is set in the user profile and the WindowUI is opened.
No one has an idea?
Hi, you can use the Page.open method to automatically open browser windows. It takes an URL so you also have to add a custom UIProvider to your session that can serve different UIs based on the URL. BrowserWindowOpener does this automatically.
Note, however, that browsers don't necessarily like pages opening new windows without user interaction - they may block them completely or at least ask the user if they want to allow it.
thanks for your answer. I tried what you suggested, but I have still two problems left:
1.: using Page.open(): a new browser tab is opened with the desired url but the content of this window is empty until I press F5
2.: I'm having problems to supply all the other parameters like top, left, resizable=yes etc. to this window
If I could solve the empty window problem I would be happy. But maybe you can answer this question: why is ExtraWindowUI.init() NOT being called in my scenario?
do you have another idea?
Hi Andreas, I'll see if I can reproduce this behavior tomorrow.
any news on this topic?
I am also interested on this
I am interested too.