Shivi schrieb:
> My RPC calls take about a minute to complete in the backend ,
>
> hence it is essential to show the querying label and essential to show
> which row (which actually represents a machine) is being queried as it
> is being queried in the backend.
Here some peudocode how I would solve it:
UpdateRows[] rows = getUpdateRows();
// lock GUI, etc.
callUpdate(rows, 0);
private callUpdate(UpdateRows[] rows, int currentIndex){
showCurrentProcessedRow(rows, currentIndex);
ServerServices.Util.getInstance().performRowUpdate(rows[currentIndex], new
AsyncCallback() {
public void onSuccess(Object result) {
currentIndex++;
if (currentIndex < rows.length){
callUpdate(rows, currentIndex);
return
}
showSuccessMessage();
unlockGUI();
}
public void onFailure(Throwable caught) {
showErrorMessage(caught);
unlockGUI();
}
});
}
}
Regards, Lothar
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.