8,6 → 8,7 |
import com.google.gwt.http.client.RequestException; |
import com.google.gwt.http.client.Response; |
import com.google.gwt.json.client.JSONArray; |
import com.google.gwt.json.client.JSONObject; |
import com.google.gwt.json.client.JSONParser; |
import com.google.gwt.json.client.JSONString; |
import com.google.gwt.json.client.JSONValue; |
45,19 → 46,20 |
|
if(reponse != null) { |
|
util = new String[reponse.size()][1]; |
util = new String[reponse.size()][2]; |
|
for(int i = 0; i < reponse.size() ; i++) { |
|
JSONString item = reponse.get(i).isString(); |
JSONObject item = reponse.get(i).isObject(); |
|
if(item != null) { |
util[i][0] = item.stringValue(); |
util[i][0] = item.get("id_utilisateur").isString().stringValue(); |
util[i][1] = item.get("courriel").isString().stringValue(); |
} |
} |
} |
else { |
util = new String[0][1]; |
util = new String[0][2]; |
} |
|
r.rafraichir(util, true); |
67,8 → 69,6 |
} catch (RequestException e) { |
|
e.printStackTrace(); |
} |
|
} |
} |
|
} |