11,7 → 11,6 |
import com.google.gwt.http.client.RequestException; |
import com.google.gwt.http.client.Response; |
import com.google.gwt.http.client.URL; |
import com.google.gwt.user.client.Window; |
|
|
/** |
65,25 → 64,23 |
+"&commentaire="+obs.getCommentaire() |
+"&latitude="+URL.encodeComponent(""+obs.getLatitude()) |
+"&longitude="+URL.encodeComponent(""+obs.getLongitude());; |
|
|
try { |
|
rb.sendRequest(postData, new RequestCallback() { |
|
@Override |
public void onError(Request request, Throwable exception) { |
// TODO Auto-generated method stub |
|
} |
|
@Override |
public void onResponseReceived(Request request, |
Response response) { |
|
r.rafraichir(obs,true); |
|
} |
|
|
} |
}) ; |
|
} catch (RequestException e) { |
113,7 → 110,6 |
+ "&station="+ URL.encodeComponent(obs.getStation()) |
+"&milieu="+ URL.encodeComponent(obs.getMilieu()) |
+"&commentaire="+obs.getCommentaire() |
+"&mots_cles="+URL.encodeComponent(""+obs.getMotsCles()) |
+"&latitude="+URL.encodeComponent(""+obs.getLatitude()) |
+"&longitude="+URL.encodeComponent(""+obs.getLongitude()); |
|
121,11 → 117,13 |
|
rb.sendRequest(postData, new RequestCallback() { |
|
@Override |
public void onError(Request request, Throwable exception) { |
// TODO Auto-generated method stub |
|
} |
|
@Override |
public void onResponseReceived(Request request, |
Response response) { |
|
158,11 → 156,13 |
try { |
rb.sendRequest(postData, new RequestCallback() { |
|
@Override |
public void onError(Request request, Throwable exception) { |
// TODO Auto-generated method stub |
|
} |
|
@Override |
public void onResponseReceived(Request request, |
Response response) { |
|