Hi,
on client-side the code was as follows. So there is no time wasted.
The generation of 100.000 objects on server side took 100ms.
The time should therefore only be "wasted" between server and client.
time = new Date().getTime();
final AsyncCallback<List<Serializable>> callback = new
AsyncCallback<List<Serializable>>() {
public void onFailure(Throwable caught) {
Window.alert(caught.toString());
}
public void onSuccess(List<Serializable> result) {
// take the result coming from the server
boolean ok = result != null;
if (ok) {
RootPanel.get().add(new Html("XXXXX
"+result.size()));
} else {
Registry.unregister(Util.USERTOKEN);
}
}
};
reportingService.test(nr, callback);
Regards,
Mark
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---