Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2437 → Rev 2438

/trunk/src/org/tela_botanica/client/modeles/dao/ListeReferentielChampsEtendusDAO.java
196,17 → 196,22
@Override
public void onResponseReceived(final Request request,
final Response response) {
final JSONValue responseValue = JSONParser.parse(response.getText());
String description = "";
JSONObject reponse = responseValue.isObject();
if(reponse != null && reponse.get("texte") != null && reponse.get("texte").isString() != null) {
description = reponse.get("texte").isString().stringValue();
try {
final JSONValue responseValue = JSONParser.parse(response.getText());
String description = "";
JSONObject reponse = responseValue.isObject();
if(reponse != null && reponse.get("texte") != null && reponse.get("texte").isString() != null) {
description = reponse.get("texte").isString().stringValue();
}
cacheDescription.put(champ, description);
callback.onSuccess(description);
} catch(Exception exception) {
this.onError(request, exception);
}
cacheDescription.put(champ, description);
callback.onSuccess(description);
}
 
@Override
213,8 → 218,7
public void onError(Request request, Throwable exception) {
cacheDescription.put(champ, "");
callback.onFailure("");
}
}
});
} catch (RequestException e) {