valueproxies

20 views
Skip to first unread message

lucky

unread,
May 15, 2012, 3:02:23 AM5/15/12
to google-we...@googlegroups.com
could you please clarify me that can't we call two times fire methods in same widget?
Because i want to get data from the server to client (for this i have created the value proxy and one requestcontext).
and send some user input to server(for this i have created one more value proxy and requestcontext).
when i fire () these two in same widget I am getting exceptions.


Thomas Broyer

unread,
May 15, 2012, 7:30:20 AM5/15/12
to google-we...@googlegroups.com
I'm not sure I understand your situation (also, knowing which exceptions you're seeing would help), but you can't call fire() twice on the same RequestContext instance.

You can "batch" several method calls on the same RequestContext (using to(Receiver) to attach invocation-specific callbacks) and then call fire() once to make a single HTTP request.

It has nothing to do with "widgets".
Reply all
Reply to author
Forward
0 new messages