Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1707 → Rev 1708

/trunk/src/org/tela_botanica/client/modeles/structure/StructureAsyncDao.java
160,7 → 160,17
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
if (responseValue.isString() != null) {
// Si la requête a impliquées des valeurs autogénérées, l'objet modifié est retourné
JSONObject obj;
if ((obj = responseValue.isObject()) != null) {
if (obj.get("structures").isObject() != null) {
Information info = new Information("ajout_structure");
Structure structure = new Structure(obj.get("structures").isObject());
info.setDonnee(structure);
vueARafraichir.rafraichir(info);
}
}
else if (responseValue.isString() != null) {
Information info = new Information("ajout_structure");
String structureIdOuMessage = responseValue.isString().stringValue();
if (structureIdOuMessage.matches("^[0-9]+$")) {