Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DigitizePanel.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 | d29a9fa10313 |
children | 88b51e6e0334 |
comparison
equal
deleted
inserted
replaced
1424:8974e220b193 | 1425:bc06a671ef60 |
---|---|
72 all.remove(UESK_BARRIERS); | 72 all.remove(UESK_BARRIERS); |
73 | 73 |
74 Canvas selectBox = super.create(clone); | 74 Canvas selectBox = super.create(clone); |
75 | 75 |
76 final Config cfg = Config.getInstance(); | 76 final Config cfg = Config.getInstance(); |
77 final String url = cfg.getServerUrl(); | |
78 final String locale = cfg.getLocale(); | 77 final String locale = cfg.getLocale(); |
79 | 78 |
80 DataItem[] obj = barriers.getItems(); | 79 DataItem[] obj = barriers.getItems(); |
81 | 80 |
82 final String[] geojson = new String[1]; | 81 final String[] geojson = new String[1]; |
86 break; | 85 break; |
87 } | 86 } |
88 } | 87 } |
89 | 88 |
90 String river = getDataValue("state.winfo.river", "river"); | 89 String river = getDataValue("state.winfo.river", "river"); |
91 mapInfo.getMapInfo(url, locale, river, new AsyncCallback<MapInfo>() { | 90 mapInfo.getMapInfo(locale, river, new AsyncCallback<MapInfo>() { |
92 public void onFailure(Throwable caught) { | 91 public void onFailure(Throwable caught) { |
93 String msg = caught.getMessage(); | 92 String msg = caught.getMessage(); |
94 | 93 |
95 GWT.log("Error while fetching MapInfo: " + msg); | 94 GWT.log("Error while fetching MapInfo: " + msg); |
96 SC.warn(MSG.getString(msg)); | 95 SC.warn(MSG.getString(msg)); |