How to Implement progressbar with GWT?

user405458 picture user405458 · Aug 1, 2011 · Viewed 11.2k times · Source

In a GWT application, I have a long process that runs server side and invoked using rpc(GWT dispatcher) and I want to have a feedback to the Client as a progress bar showing messages and the total progress. My question is how to recover messages and the progress dynamically from the server?

I'm interested in any solution

thank you in advance for your help.

Answer

Nico Huysamen picture Nico Huysamen · Aug 1, 2011

Have a look at the get progress bar in the incubator. Here is another example of someone using it.


UPDATE

If you want to display the progress on the client side, you will need to make async calls to the server periodically to fetch the progress value. In other words, the server needs to write / store somewhere how far it is with its progress. The client then makes an async call to the server, which reads that value and sends it back to the client, which can update the progress bar.