Saturday, July 3, 2010

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

This sounds really great Thomas, haven't tried that yet.

Can this be done by subclassing RequestBuilder? And can I actually
really use my subclass of RequestBuilder as return type in
RemoteService methods? Would make me love the ability to use this
"return" feature of GWT RPC even more!

On 3 Jul., 02:23, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 2 juil, 18:22, andreas <horst.andrea...@googlemail.com> wrote:
>
> > You could show your load screen (for example a popup panel or even
> > just a label) right after issuing the RPC and hide it in onSuccess()
> > and onFailure().
>
> And if you want the same panel to be shown in most cases, you could
> bake it into a RpcRequestBuilder that you then inject inside you
> RemoteService/Async, and that's it, nothing special to be done at the
> "call site" of your service's method.

--
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