parallel RequestFactory calls within an Editor

27 views
Skip to first unread message

bloo

unread,
Feb 5, 2012, 8:28:55 AM2/5/12
to Google Web Toolkit
Hi all, I have a complex Editor that contains a number of TextBox
inputs and a Selector backed child Editor which represents a child
EntityProxy of the root EntityProxy. I'm using the
RequestFactoryEditorDriver to drive the root EntityProxy. My Selector
backed Editor uses an oracle that performs an asynchronous
RequestFactory service call to the server to query for the EntityProxy
values - which causes the RequestContext "streams to cross" and an
error.

Is there any way to perform a RequestFactory based service call to the
server while the root Editor is currently being driven by a
RequestFactoryEditorDriver and initialized, awaiting to have its edits
flushed?

Thomas Broyer

unread,
Feb 5, 2012, 11:24:29 AM2/5/12
to google-we...@googlegroups.com
Er, well, don't pass the EntityProxy as an argument to your method in the oracle; pass its ID instead.

bloo

unread,
Feb 6, 2012, 5:06:50 PM2/6/12
to Google Web Toolkit
Thanks, Thomas. I came back here just to report that. I had designed
my services to take Entities (and EntityProxies on the GWT side) as
arguments to "filter" what the Selector will return as its list of
choices out of habit of design. I should have considered passing the
ID from the start given that these arguments are serialized and passed
over the wire. What threw me off was that the argument used for the
Selector was a property of my root Editor's main EntityProxy, not the
root EntityProxy itself, so I was initially at a loss when the error
said I was trying to edit an EntityProxy already being edited. Also,
I wasn't editing the arguments, just using them as parameters - but
GWT RF of course doesn't know that.

Passing the ID as you suggested cleared this up. Thanks for your feed
back. Your posterous posts have been a lifesaver, btw.

-B
Reply all
Reply to author
Forward
0 new messages