Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java @ 1425:bc06a671ef60
Removed the URL parameter from service calls. The service
implementations read the URL from the web.xml config file now.
flys-client/trunk@3367 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 08 Dec 2011 09:12:27 +0000 |
parents | dfa2d4753fc0 |
children | c39aa5a6478c |
comparison
equal
deleted
inserted
replaced
1424:8974e220b193 | 1425:bc06a671ef60 |
---|---|
520 Data data = new DefaultData( | 520 Data data = new DefaultData( |
521 BARRIERS_PARAMETER_KEY, BARRIERS_PARAMETER_KEY, "String", | 521 BARRIERS_PARAMETER_KEY, BARRIERS_PARAMETER_KEY, "String", |
522 new DataItem[] {item} ); | 522 new DataItem[] {item} ); |
523 | 523 |
524 Config config = Config.getInstance(); | 524 Config config = Config.getInstance(); |
525 final String url = config.getServerUrl(); | |
526 final String locale = config.getLocale(); | 525 final String locale = config.getLocale(); |
527 | 526 |
528 feedService.go(url, locale, getArtifact(), new Data[] { data }, | 527 feedService.go(locale, getArtifact(), new Data[] { data }, |
529 new AsyncCallback<Artifact>() { | 528 new AsyncCallback<Artifact>() { |
530 public void onFailure(Throwable caught) { | 529 public void onFailure(Throwable caught) { |
531 GWT.log("Could not save barrier geometries: " + | 530 GWT.log("Could not save barrier geometries: " + |
532 caught.getMessage()); | 531 caught.getMessage()); |
533 } | 532 } |