Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 153 → Rev 155

/trunk/src/org/tela_botanica/client/modeles/StructureAsyncDao.java
71,12 → 71,12
if (response.getText().length() != 0 && response.getText() != null) {
final JSONValue responseValue = JSONParser.parse(response.getText());
// Si la requête est un succès, reception d'un tableau
if (responseValue.isArray() != null) {
Information info = new Information("ajout_structure", responseValue.isArray());
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
Information info = new Information("ajout_structure", responseValue.isString().stringValue());
r.rafraichir(info);
} else {
GWT.log(url+"\n\tLa réponse n'est pas un tableau JSON.", null);
GWT.log(url+"\n\tLa réponse n'est pas une chaine JSON.", null);
}
} else {
GWT.log(url, null);