comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWindow.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 7fc8b2a81463
children 4a6814be92ba
comparison
equal deleted inserted replaced
1424:8974e220b193 1425:bc06a671ef60
158 protected void loadArtifacts(Recommendation[] recommendations) { 158 protected void loadArtifacts(Recommendation[] recommendations) {
159 Config cfg = Config.getInstance(); 159 Config cfg = Config.getInstance();
160 160
161 final Collection collection = view.getCollection(); 161 final Collection collection = view.getCollection();
162 final Artifact masterArtifact = view.getArtifact(); 162 final Artifact masterArtifact = view.getArtifact();
163 final String serverUrl = cfg.getServerUrl();
164 final String locale = cfg.getLocale(); 163 final String locale = cfg.getLocale();
165 164
166 this.inProgress = recommendations.length; 165 this.inProgress = recommendations.length;
167 166
168 for (final Recommendation recommendation: recommendations) { 167 for (final Recommendation recommendation: recommendations) {
178 177
179 loadService.load( 178 loadService.load(
180 collection, 179 collection,
181 recommendation, 180 recommendation,
182 factory, 181 factory,
183 serverUrl,
184 locale, 182 locale,
185 new AsyncCallback<Artifact>() { 183 new AsyncCallback<Artifact>() {
186 public void onFailure(Throwable caught) { 184 public void onFailure(Throwable caught) {
187 decreateInProgress(); 185 decreateInProgress();
188 SC.warn(caught.getMessage()); 186 SC.warn(caught.getMessage());

http://dive4elements.wald.intevation.org