Hi,
I’ve successfully implemented vaadin push in portlet (https://vaadin.com/forum/thread/17075592) but I’m in stuck with ui refresh.
What we do is:
- Open a window with a loader
- Start a background thread with a web services request to my application server
- call access(() → { windowLoader.close(); }); to close the window when ws request ends.
The window doesn’t close until I resize browser window or do some stuff on client side and browser repaint ui (@Push is set to automatic mode).
I’ve tried adding: JavaScript.getCurrent().execute(“setTimeout(function () {$(window).trigger(‘resize’);},200)”); to force window resize by js but sometime works, sometime not…
Someone who had same issue?