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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment