Re: Editor+RequestFactory: how to get the new saved object ?

2011-03-27 Thread Simon M
When setting the receiver on the same line as the call of the method I get the good Receiver type, but with the RequestContext returned by editor.flush() the Receiver has a Void parameter ... Using the to() method resolved that issue thank you. -- You received this message because you are subs

Re: Editor+RequestFactory: how to get the new saved object ?

2011-03-26 Thread Thomas Broyer
The RequestContext returned by flush() is the one you gave to edit(). To persist your entity, you've had to call a service method on it before giving it to edit() (or after, if you kept a reference on it); and you can simply give it a Receiver without fire()ing the request by using the to() meth

Editor+RequestFactory: how to get the new saved object ?

2011-03-26 Thread Simon M
I am using the editor framework + RequestFactory, and when creating a new object I need to get the new saved object (some fields are populated on the server). The problem is, the request context returned by the editorDriver.flush() sends a Receiver<*Void*>, and not a Receiver<*EntityProxy*>. H