Nice idea but what about when the data is all client side that they
are dealing with...until they try to hit the server it still won't
show a popup.
Any other ideas?
The only other thing I can think of combined with yours is have a call
made every min or less in a timer that makes a call using your method?
Of course this would have to be in something that doesn't leave the
screen like in a header or footer I would guess.
On Apr 27, 4:29 am, Sripathi Krishnan <
sripathikrish...@gmail.com>
wrote:
> Just have a custom class the extends AsyncCallback, like below, and mandate
> that everybody uses it instead of directly using AsyncCallback.
>
> public abstract class MyAsyncCallback<T> implements AsyncCallback<T> {
>
> public void onFailure(Throwable caught) {
> if(caught instanceof AuthenticationException) {
> //redirect to login page
> }
> else if(caught instanceof AuthorizationException) {
> //tell the user he doesn't have rights to perform this
> operation
> }
>
> try {
> //allow your application to handle the exception
> handleFailure(caught);
> }
> catch(Throwable e) {
> //default application-wide error handling
> }
> }
>
> //provide a default implementation. Code that wants to handle
> exceptions can do so by overriding this method
> //Lazy developers can just ignore it, and the app-wide error handling
> framework will do the needful
> public void handleFailure(Throwable t) throws Exception {
> throw t;
> }
>
> }
>
> --Sri
>
> >
google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs
cr...@googlegroups.com>
> > .
> > --
> > 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-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs
cr...@googlegroups.com>
> > .