Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java @ 550:605debcbb6a0
Adjusted the return values of the CSVExportService, so that GWT can handle those values better.
flys-client/trunk@2063 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 07 Jun 2011 12:51:57 +0000 |
parents | be842e36ce1c |
children | dfbc6693247e |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java Tue Jun 07 10:03:19 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java Tue Jun 07 12:51:57 2011 +0000 @@ -5,6 +5,7 @@ import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; +import com.smartgwt.client.util.SC; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.layout.VLayout; @@ -72,13 +73,13 @@ dataTable.setShowHeaderContextMenu(false); exportService.getCSV(url, locale, uuid, name, - new AsyncCallback<List>() { + new AsyncCallback<List<String[]>>() { public void onFailure(Throwable caught) { GWT.log("Could not recieve csv."); - GWT.log(caught.getMessage()); + SC.warn(caught.getMessage()); } - public void onSuccess(List l) { + public void onSuccess(List<String[]> l) { GWT.log("Recieved csv with " + l.size() + " lines."); setData(l); }