Re: Execute commands between RPC requests

2010-07-06 Thread Bruno Santos
solve the problem, the interface replaces the RequestBuilder by void, removed the .send() and in the method doSetCallback of the class MyRpcRequestBuilder added the following line: rb.setCallback (callback); And in the method doFinish: rb.setHeader (STRONG_NAME_HEADER, GWT.getPermutationStrongName

Re: Execute commands between RPC requests

2010-07-06 Thread Bruno Santos
I forgot to tell you that I'm doing this too ((ServiceDefTarget)service).setRpcRequestBuilder(theBuilder); after RpcRequestBuilder theBuilder = new MyRpcRequestBuilder(); but the error continues -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" gr

Re: Execute commands between RPC requests

2010-07-06 Thread Bruno Santos
Thank you Thomas, but I can not, please see where this error: I created a class MyRpcRequestBuilder: public class MyRpcRequestBuilder extends RpcRequestBuilder { public MyRpcRequestBuilder() { // Do something here } public void doSetCallback(Request

Re: Execute commands between RPC requests

2010-07-05 Thread Thomas Broyer
On 5 juil, 20:57, Bruno Santos wrote: > Is there any way to run a given command at the beginning and end of > any RPC request? You can provide an RpcRequestBuilder and either: - return your own RequestBuilder from doCreate(), which would override send() and setCallback() - do the "beginning c