Here's what I do:
> public void someMethod(){
> BusyHandler.show();
> AsyncCallback callback = new AsyncCallback() {
>
> public void onSuccess(Object result) {
> //do some stuff here
> BusyHandler.hide();
> }
>
> public void onFailure(Throwable ex) {
> BusyHandler.hide();
> }
> };
>
> MyRemoteService.Util.getInstance().remoteMethod(callback);
> }
>
The BusyHandler is a custom class wrapping a setVisible() on a modal dialog
that contains only a spinner animated gif image above a transparent
background. I guess the next best thing besides that would be to create your
own AsyncCallback extention that would call the BusyHandler...but not sure
if this is possible.
- Erick
On Wed, Dec 2, 2009 at 9:39 PM, tin <[email protected]> wrote:
> Hi everyone,
>
> I have a GWT application that uses RPC calls heavily. I would like to
> display a spinner icon whenever a call is in progress. It is easy
> enough to display the icon, but I want to do it seamlessly in one
> place so I don't have to explicitly hide and show the icon for each
> call.
>
> I guess I am looking for something similar to jQuery's ajaxStart and
> ajaxStop events.
>
> Has anyone done something like this before?
>
> Cheers,
>
> Tin
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
--
Erick Audet B.Sc. M.Sc.
site: www.jarics.com
email: [email protected]
Skype:erick.audet
LinkedIn: http://www.linkedin.com/in/erickaudet
tel.: 418.682.9712
Erick Audet B.Sc. M.Sc.
Architecte organique PANORAMA
Institut national de santé publique du Québec
1000, route de l'Église, suite 600
Québec (Québec) G1V 3V9
Tél: 418 654-3010 # 5439
Courriel : [email protected]
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.