If you use gwt-rpc, make a default asyncallback like this:

public abstract class DefaultAsyncCallback<T> implements
com.google.gwt.user.client.rpc.AsyncCallback<T> {

private static final char flag = '0';

@Override
public void onFailure(Throwable e) {
 if (isUnAuthenticatedUser(e)) showLogin();
}

}

And use everywhere.

2011/6/15 koma <k...@koma.be>

> same prob.
>
> Firefox supports something like *mozBackgroundRequest*
> *Not sure how to set this property for a JSONP call though. Even then,
> only works for FF, chromium has a ticket 
> open<http://code.google.com/p/chromium/issues/detail?id=31582>,
> found nothing about IE.
> *
> *
> *
> *
> *
> *I'd like to save my credentials locally (Gadget preferences) but the
> Basic auth dialog makes this impossible.*
>
> *
> *
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/oy6rOq9CjN0J.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to