1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
private Object[][] getDocumentDataRemote(){
final AsyncCallback<List<String>> callback = new AsyncCallback<List<String>>() {
public void onFailure(Throwable caught) {
MessageBox.alert("Remote Procedure Call - Failure");
}
public void onSuccess(List<String> list){
int i = 0;
documentList = new Object[list.size()][];
System.out.println("list size: "+list.size());
for(String d : list){
documentList[i] = new Object[]{d,"url", d, d};
System.out.println("1"+documentList[1][1]);
i++;
}
}
};
homeService.searchDocument(callback);
System.out.println("2 "+documentList);
return documentList;
} |
Partager