Hi, I am trying to load some data for a ListBox on startup..
I have this in the onModuleLoad method
private final PrintProviderMockServiceAsync ppmockService =
GWT.create(PrintProviderMockService.class);
....
....
ppmockService.getPrintProviders(new
AsyncCallback<ArrayList<PrintProviderMock>>() {
@Override
public void onSuccess(ArrayList<PrintProviderMock> arg0) {
for (PrintProviderMock printProviderMock : arg0) {
comboBox.addItem(printProviderMock.getName());
}
}
@Override
public void onFailure(Throwable t) {
t.printStackTrace();
}
});
Anyone got some good ideas how to load data into various widgets on startup
??
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.