I am trying to nest two request factory calls in each other. I retrieve a post object and in the success-method i use the same object again (just for testing purposes, I get the same behavior for other request like for example persisting).
The problem is: Only the first request reaches the server. I don't get any error message. If I debug the code, everything works until the second request is fired. Nothing happens then. The method on the backend is not called, the frontend shows no error, even if I implement the "onFailure"-method for the receiver of the second request. public class RequestFactoryFindTest extends GWTTestCase{ /** * must refer to a valid module that sources this class. */ public String getModuleName() { return "com.Test.MyTest"; } public void test(){ final ClientFactory clientFactory = GWT.create(ClientFactoryImpl.class); final MyRequestFactory requestFactory = clientFactory.getRequestFactory(); final PostRequest request = requestFactory.postRequest(); request.findPost(1l).fire(new Receiver<PostProxy>() { @Override public void onSuccess(PostProxy response) { final ClientFactory clientFactory = GWT.create(ClientFactoryImpl.class); final MyRequestFactory requestFactory = clientFactory.getRequestFactory(); final PostRequest request = requestFactory.postRequest(); System.out.println("outer success"); request.findPost(1l).fire(new Receiver<PostProxy>() { @Override public void onSuccess(PostProxy response) { System.out.println("inner success"); } }); } }); }} Can someone explain this? -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.