diff flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 14:fe2f4d1dd784

Integrated the httpclient for the communication between client and server. It is now possible to create a new WINFO artifact. flys-client/trunk@1326 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 17 Feb 2011 11:52:55 +0000
parents 8facd8545a12
children 2da6be38d8b6
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java	Thu Feb 17 09:17:37 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java	Thu Feb 17 11:52:55 2011 +0000
@@ -117,7 +117,9 @@
      * Create a new Artifact.
      */
     public void newArtifact(String factory) {
-        artifactService.create(factory, new AsyncCallback<Artifact>() {
+        String url = Config.getInstance().getServerUrl();
+
+        artifactService.create(url, factory, new AsyncCallback<Artifact>() {
             public void onFailure(Throwable caught) {
                 GWT.log("Could not create the new artifact.");
                 GWT.log(caught.getMessage());

http://dive4elements.wald.intevation.org