Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.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 | 4b177fd52f06 |
children | 07b9404d7170 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Thu Dec 08 08:06:11 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Thu Dec 08 09:12:27 2011 +0000 @@ -352,7 +352,7 @@ final Data[] feedData = new Data[] { data[1] }; artifactService.create( - url, locale, module.toLowerCase(), null, + locale, module.toLowerCase(), null, new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not create the new artifact."); @@ -362,7 +362,7 @@ public void onSuccess(Artifact artifact) { GWT.log("Successfully created a new artifact."); - forwardService.go(url, locale, artifact, feedData, + forwardService.go(locale, artifact, feedData, new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not feed the artifact."); @@ -578,10 +578,9 @@ GWT.log("CollectionView - onStepForward()"); Config config = Config.getInstance(); - String serverUrl = config.getServerUrl(); String locale = config.getLocale(); - forwardService.go(serverUrl, locale, artifact, event.getData(), + forwardService.go(locale, artifact, event.getData(), new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not feed the artifact."); @@ -608,10 +607,9 @@ final String target = e.getTarget(); Config config = Config.getInstance(); - final String serverUrl = config.getServerUrl(); final String locale = config.getLocale(); - advanceService.advance(serverUrl, locale, artifact, target, + advanceService.advance(locale, artifact, target, new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not go back to '" + target + "'"); @@ -632,10 +630,9 @@ public void onAdvance(final String target) { Config config = Config.getInstance(); - final String serverUrl = config.getServerUrl(); final String locale = config.getLocale(); - advanceService.advance(serverUrl, locale, artifact, target, + advanceService.advance(locale, artifact, target, new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not go to '" + target + "'"); @@ -804,7 +801,6 @@ } Config config = Config.getInstance(); - String url = config.getServerUrl(); String locale = config.getLocale(); String cid = c.identifier(); @@ -812,7 +808,7 @@ for (ReportMode report: reports) { GWT.log("report '" + report.toString() + "'"); - reportService.report(cid, url, locale, report.getName(), + reportService.report(cid, locale, report.getName(), new AsyncCallback<String>() { public void onFailure(Throwable caught) { SC.warn(caught.getMessage());