'Vaadin 14 - Closing IFrame after request from an other application
In my application, I open an IFrame in one of my views, to access an application through that, and after the process is done in that application, it sends me a request to my callback servlet, after that I want to close this IFrame in my Vaadin application.
Currently I use a BroadCaster in my Servlet, to send events to my view, I receive those events and close the IFrame but I don't see the changes on my window.
I have asyncSupported enabled on my Servlet and @Push annotation on my MainView, which contains my IFrame.
What else I need for this to work?
Solution 1:[1]
Setting the Pushmode to Manual and using push() on that view after the changes worked, not sure why automatic wasn't working for me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | SchneiderKr |