Subversion Repositories eFlore/Applications.coel

Rev

Rev 775 | Rev 935 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 775 Rev 884
Line 70... Line 70...
70
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
70
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
71
			@Override
71
			@Override
72
			public void surReponse(JSONValue responseValue) {
72
			public void surReponse(JSONValue responseValue) {
73
				if (responseValue.isString() != null) {
73
				if (responseValue.isString() != null) {
74
					Information info = new Information("ajout_personne");
74
					Information info = new Information("ajout_personne");
75
					info.setMessage(responseValue.isString().stringValue());
75
					String structureIdOuMessage = responseValue.isString().stringValue();
-
 
76
					if (structureIdOuMessage.matches("^[0-9]+$")) {
-
 
77
						info.setDonnee(structureIdOuMessage);
-
 
78
					} else {
-
 
79
						info.setMessage(structureIdOuMessage);
-
 
80
					}
76
					vueARafraichir.rafraichir(info);
81
					vueARafraichir.rafraichir(info);
77
				} else {
82
				} else {
78
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
83
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
79
				}
84
				}
80
			}
85
			}