Hi,
We start integrating RequestFactory and Editors into our app. But we
constantly get an "AssertionError: addInvocation() should have
failed". From GWT source code it seems that this error will occur when
calling more then one request method defined in a service method stub
before calling fire(). But I am pretty sure that our code won't do
that.
We have a custom list widget that has to show some EntityProxy
objects, so we load them via
requestFactory.exampleProxyRequest().findAll().with("someproperty").fire(new
Receiver<List<ExampleProxy>() { ... })
and put the result into our list (this list is not an editor, its just
for selecting an item).
When a list item becomes selected we want to edit the selected item in
a different view/presenter so we pass it to that presenter and do:
interface DataBindingManager extends
RequestFactoryEditorDriver<ExampleProxy,
ExampleProxyPresenter.Display> {}
...
this.dataBindingManager = GWT.create(DataBindingManager.class);
this.dataBindingManager.initialize(this.requestFactory,
this.getDisplay()); //requestFactory is a singleton through gin
this.dataBindingManager.edit(selectedExampleProxy,
this.requestFactory.exampleProxyRequest());
Now the display gets populated with all data and after we edited some
data and want to save this data we do:
RequestContext ctx = this.dataBindingManager.flush();
ctx.fire(new Receiver<Void>() { ... });
The call to fire causes the AssertionError: addInvocation() should
have failed in
AbstractRequestContext.makePayload(AbstractRequestContext.java:441).
Any ideas? Am I doing something wrong? That error really drives me
nuts.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.