You REALLY need to read up on GWT RPC.
requestFactory
.employeeRequest()
.findAllEmployees()
.fire(new ReceiverListEmployeeProxy() {
@Override
public void onSuccess(ListEmployeeProxy response) {
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
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,
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()
*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