Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-18 Thread Greg Dougherty
You REALLY need to read up on GWT RPC. requestFactory .employeeRequest() .findAllEmployees() .fire(new ReceiverListEmployeeProxy() { @Override public void onSuccess(ListEmployeeProxy response) {

is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread zixzigma
I am facing a dilemma. when an Activity starts, I use RequestFactory to retrieve some data. - I don't know however when should I update the view responsible for displaying the data. in the code below, I have identified two place holders ## A ## and ## B ### and another question: - is a call on

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread Y2i
The call is non-blocking. When response arrives, you can populate the widget and call setWidget() on the display. Start() javadochttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/activity/shared/Activity.html#start(com.google.gwt.user.client.ui.AcceptsOneWidget,

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread zixzigma
calling setWidget, should be done within Receiver#onSuccess anonymous inner class, or after that code ? On Jan 17, 7:17 pm, Y2i yur...@gmail.com wrote: The call is non-blocking. When response arrives, you can populate the widget and call setWidget() on the display.  Start()

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread Y2i
*within Receiver#onSuccess anonymous inner class*, it's where you actually receive the data. *After that code* the data is not yet available. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to