Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 277 Rev 298
Line 11... Line 11...
11
import com.google.gwt.http.client.RequestCallback;
11
import com.google.gwt.http.client.RequestCallback;
12
import com.google.gwt.http.client.RequestException;
12
import com.google.gwt.http.client.RequestException;
13
import com.google.gwt.http.client.Response;
13
import com.google.gwt.http.client.Response;
14
import com.google.gwt.http.client.URL;
14
import com.google.gwt.http.client.URL;
15
import com.google.gwt.json.client.JSONArray;
15
import com.google.gwt.json.client.JSONArray;
16
import com.google.gwt.json.client.JSONException;
-
 
17
import com.google.gwt.json.client.JSONParser;
16
import com.google.gwt.json.client.JSONParser;
18
import com.google.gwt.json.client.JSONValue;
17
import com.google.gwt.json.client.JSONValue;
19
import com.google.gwt.user.client.Window;
-
 
Line 20... Line 18...
20
 
18
 
21
 
19
 
Line 31... Line 29...
31
	public void selectionner(String personneId, String projetId, String nomComplet) {
29
	public void selectionner(String personneId, String projetId, String nomComplet) {
32
		// Ajout des paramètres et données à selectionner dans l'URL
30
		// Ajout des paramètres et données à selectionner dans l'URL
33
		String[] parametres = new String[3];
31
		String[] parametres = new String[3];
34
		parametres[0] = (personneId == null ? "*" : personneId);
32
		parametres[0] = (personneId == null ? "*" : personneId);
35
		parametres[1] = (projetId == null ? "*" : projetId);
33
		parametres[1] = (projetId == null ? "*" : projetId);
36
		parametres[2] = (nomComplet == null ? "*" : URL.encodeComponent(nomComplet));
34
		parametres[2] = (nomComplet == null ? "*" : nomComplet);
37
		final RequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
35
		final RequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
38
		try {
36
		try {
39
			rb.sendRequest(null, new RequestCallback() {
37
			rb.sendRequest(null, new RequestCallback() {
Line 40... Line 38...
40
 
38