Wednesday, July 31, 2013

Re: detect sop violation from gwt rpc client

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment