Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Updating image in Thread

Piotr Gawroński
5 years ago Apr 09, 2017 11:10pm
Tatu Lund
5 years ago Apr 11, 2017 7:20am

This should be possible. But you need to remember the following 1) You need to use Push for the UI to update 2) You need to use UI.access() with the Runnables (otherwise you get concurrent modification exception) 3) If you have background threads, remember to ensure that they end or clean them in SessionDestroyEvent, since Vaadin is not automatically removing background threads started by you.
 

Piotr Gawroński
5 years ago Apr 12, 2017 9:51pm
Piotr Gawroński
5 years ago Apr 12, 2017 9:53pm
Tatu Lund
5 years ago Apr 13, 2017 6:46am