Ooops I am sorry too :)

I mixed RequestFactory with GWT-RPC. For GWT-RPC you need to create a 
custom RpcRequestBuilder and call ServiceDefTarget.setRpcRequestBuilder().

In your custom RpcRequestBuilder you probably want to override 
RpcRequestBuilder.doSetCallback() like:

protected void doSetCallback(final RequestBuilder rb, final RequestCallback 
callback) {
  rb.setCallback(new RequestCallback() {
     void onResponseReceived(Request request, Response response) {
        //add custom logic
        callback.onResponseReceived(request, response);
     }
     void onError(Request request, Throwable throwable) {
        //add custom logic
        callback.onError(request, throwable);
     }
  });
}


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to