You can listen for EntityProxyChange events on the EventBus. If your entity
has been edited a corresponding event will be fired so you can fetch a
fresh copy from the server.
Alternatively you could define a persist() method in your RequestContext
that does return the persisted Entity. That way the persisted entity will
be send back to you. Your code would look like:
ExampleRequest er = RF.exampleRequest();
er.persist(yourEntity).to(
new Receiver<YourEntity>() {
public void onSuccess(YourEntity yourPersistedEntity) {
.......
}
});
editorDriver.edit(yourEntity, er);
....
editorDriver.flush().fire(); //which will call the receiver from above.
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/9kzg8FwiRHwJ.
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.