update the UI after adding each row

Hello everyone,I want to update the display after adding each row in a tableand not after adding all the rows, when the addition is a loop.How can I do this?

tnx!

Depends on when you add the rows. If you do it in a Vaadin Listener (e.g. clicklistener), the you can’t; vaadin processes all changes on the server side first, and then sends everything to the client.

The solution is using Vaadin Push with a manual pushmode. First, move your loop to an external thread. Then, in each loop, synchronize woth the vaadin session, make your change, and call UI.push. That should give the behaviour you want.

Thank you!
Do you have any sample code for these functions?

See here for using Push:
https://vaadin.com/book/-/page/advanced.push.html