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.

Blocking all components during loading content

Yury Repeshov
1 decade ago Nov 16, 2010 9:39am
Marko Grönroos
1 decade ago Nov 24, 2010 5:57pm

You could run the heavy DB query in another thread. Just initialize the UI with some things disabled and start the thread. Use ProgressBar with polling with perhaps 1 s intervals. When the query is done, enable the disabled UI.

It should be very similar to this example. It's also in the Book.

Yury Repeshov
1 decade ago Nov 30, 2010 2:02pm