Adding a progress bar during RPC

I want to add a progress bar during a gwt-rpc call that shows the percentage of completed task. Anyone who can help me with a piece of code for the same?

In addition, I upload the video to my client side from the military catalog, and they take some time. Therefore, if I sometimes try to play them, the browser does not respond (perhaps because the whole part is not loaded). Is there a way to determine (and therefore show the user) when the video is fully downloaded?

+3
source share
2 answers

The gwt-incubator window displays a progress bar widget. However, most of your GWT-RPC calls should be very fast, so I cannot imagine the progress bar to appear. In addition, I do not know how to succeed in calling GWT-RPC, you will have to manually code this function on the server side.

For example, if you are doing a long job, you can create another GWT-RPC call that every 30 seconds tells you the status of the job in progress and accordingly updates the progress bar.

However, for regular GWT-RPC calls, your best bet is to make some kind of boot notification .... This should not be long and easy to code.

, . , , . :

  • - Flash-, .
  • HTML 5, .

, .

+3

RPC , . , , , .

, RPC . , 4 RPC, 25% . , , , RPC .

+1

Source: https://habr.com/ru/post/1755800/


All Articles