Vaadin 14 - Closing IFrame after request from an other application

106 Views Asked by At

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?

1

There are 1 best solutions below

0
SchneiderKr On

Setting the Pushmode to Manual and using push() on that view after the changes worked, not sure why automatic wasn't working for me.