Sunday, July 4, 2010

Re: How to show a load screen during rpc call?

Hi, what I'd to is:

1.) Display an image with some "loading..." animation
2.) Start the RPC asynchronously, e.g. like
tagDatabaseService.loadAllTagsForPerson(new TagQueryMessage(
tagQuery), new AsyncCallback<TagListMessage>() {

public void onSuccess(TagListMessage result) {
// HERE
3.) at the spot marked with //HERE, remove the image again and do
something with the result you obtained via RPC

Hope this helps...

On Jul 2, 6:02 pm, crojay78 <croja...@googlemail.com> wrote:
> Hi,
>
> I need to load a few things from my server after a user gives input.
> Can somebody give an example how I can show a load screen as long as
> the rpc is not finished? I structured the app in mvp style ... any
> example would help me
>
> Best regards
>
> Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment