Thanks Tobias, That explanation was good. I had it right logically, but omitted calling one of my "special - create me a new " methods, that replaced my RequestContext for me.
All good niow. it saves data! On Nov 9, 2:28 pm, Tobias <thaberm...@gmail.com> wrote: > I *think* that happens after you have fired a RequestContext. From > looking at the code, which is a bit hard because of the > DeferredBinding that's going on there, the "locked" variable in a > RequestContext gets only reset to "false", if the fired Request fails. > So I think you need to use a new RequestContext. > > Regards, > Tobias > > On Nov 9, 12:48 pm, Ramon Buckland <ra...@thebuckland.com> wrote: > > > Hi All, > > > I am currently in the process of building an app, initally based off > > the Roo framework. > > I am getting a "A request is already in progress" at the point where I > > call create for a child entity. > > > Is there a way I can see what "request contexts" are in progress, so I > > can debug where my logic is off ?? > > Either using firebug or the eclipse debugger. > > > The stack trace I get is > > > Caused by: java.lang.IllegalStateException: A request is already in > > progress > > at > > com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocke > > d(AbstractRequestContext.java: > > 307) > > at > > com.google.gwt.requestfactory.client.impl.AbstractRequestContext.create(Abs > > tractRequestContext.java: > > 76) > > at > > isupro.client.scaffold.businessprocess.ui.AbstractBusinessProcessActivity.c > > reateNewObjectiveProxy(AbstractBusinessProcessActivity.java: > > 92) > > > My method (createNewObjectiveProxy()) usese the existing request, > > created prior so that this "new" object is in the same context. > > > public ObjectiveProxy createNewObjectiveProxy() { > > ObjectiveProxy obj = > > getRequest().create(ObjectiveProxy.class); > > obj.setId(editableBP.getId()); > > editableBP.getObjectives().add(obj); > > return obj; > > } > > > Now, without looking at my code, it will be hard for anyone to assist > > I assume, which is why I ask " how do I go about working out where my > > problem is" > > > regards > > Ramon > > -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.