Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1572 Rev 1628
Line 10... Line 10...
10
import com.google.gwt.http.client.RequestBuilder;
10
import com.google.gwt.http.client.RequestBuilder;
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.user.client.Window;
Line 15... Line 16...
15
 
16
 
16
 
17
 
17
/**
18
/**
Line 75... Line 76...
75
				
76
				
Line 76... Line 77...
76
				rb.sendRequest(postData, new RequestCallback() {
77
				rb.sendRequest(postData, new RequestCallback() {
77
 
78
 
78
					@Override
79
					@Override
79
					public void onError(Request request, Throwable exception) {
80
					public void onError(Request request, Throwable exception) {
80
						// TODO Auto-generated method stub
81
							// TODO Auto-generated method stub
Line 81... Line 82...
81
						
82
 
82
					}
83
					}
83
 
84
 
-
 
85
					@Override
-
 
86
					public void onResponseReceived(Request request,
84
					@Override
87
							Response response) {
85
					public void onResponseReceived(Request request,
88
							if(response.getStatusCode() >= 400) {
86
							Response response) {
-
 
87
						
89
									com.google.gwt.user.client.Window.alert(response.getText());
88
						r.rafraichir(obs,true);
90
							}
Line 89... Line 91...
89
						
91
							r.rafraichir(obs,true);
Line 136... Line 138...
136
					}
138
					}
Line 137... Line 139...
137
 
139
 
138
					@Override
140
					@Override
139
					public void onResponseReceived(Request request,
141
					public void onResponseReceived(Request request,
-
 
142
							Response response) {
-
 
143
							if(response.getStatusCode() >= 400) {
140
							Response response) {
144
									com.google.gwt.user.client.Window.alert(response.getText());
141
						
145
							}
142
						r.rafraichir(obs,true);
-
 
143
						
146
							r.rafraichir(obs,true);
Line 144... Line 147...
144
					}
147
					}
Line 197... Line 200...
197
			e.printStackTrace();
200
			e.printStackTrace();
198
		}
201
		}
Line 199... Line 202...
199
		
202
		
Line 200... Line -...
200
	}
-
 
201
	
203
	}
-
 
204