Hi guys, I spent some time trying to undestand why this piece of code (that 
I copied from the DynaTableRF) was not working for me:

final RequestContext context = driver.flush();

context.fire(new Receiver<Void>() {
@Override
public void onSuccess(Void response) {
// do something
}
});

No errors but the values modified on the proxy were not saved into the 
entity.

I saw that this method of the locator was called:

@Override
public MyEntity find(Class<? extends MyEntity> clazz, String id) {

and that the correct entity is returned, but anything is modified.

The fact is that the returned entity is updated with the new values from 
the SimpleRequestProcessor but at that time the session is closed and the 
entity is detached. This work on the DynaTableRF that use a filter that span 
the session for the duration of the overall request (OpenSessionInView) but 
doesn't work for me, I call EJB 3.0 methods and everything returned to the 
servlet tier is detached from the original session.

I solved this problem with a custom update method in my RequestContext, but 
I guess if I'm missing something in the understanding of the RequestFactory 
world.

Anyone with some advice ??
Thank you.



-- 
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.

Reply via email to