]> source.dussan.org Git - vaadin-framework.git/commitdiff
svn changeset:1594/svn branch:trunk
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 5 Jun 2007 13:59:55 +0000 (13:59 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 5 Jun 2007 13:59:55 +0000 (13:59 +0000)
src/com/itmill/toolkit/terminal/gwt/Client.gwt.xml [new file with mode: 0644]
src/com/itmill/toolkit/terminal/gwt/client/Client.java

diff --git a/src/com/itmill/toolkit/terminal/gwt/Client.gwt.xml b/src/com/itmill/toolkit/terminal/gwt/Client.gwt.xml
new file mode 100644 (file)
index 0000000..8e69b1c
--- /dev/null
@@ -0,0 +1,14 @@
+<module>
+
+       <inherits name='com.google.gwt.user.User'/>
+
+       <inherits name='com.google.gwt.http.HTTP'/>
+
+       <inherits name='com.google.gwt.xml.XML'/>
+
+       <inherits name='com.google.gwt.json.JSON'/>
+
+'      <!-- Specify the app entry point class.                   -->
+       <entry-point class='com.itmill.toolkit.terminal.gwt.client.Client'/>
+  
+</module>
index 72a3efdb552a82d6d540621b6566bf7de9365de2..990bb1edcf42348ecbc7568844b7dbbe8134c5cf 100755 (executable)
@@ -26,7 +26,7 @@ import com.itmill.toolkit.terminal.gwt.client.ui.RootWindow;
  */
 public class Client implements EntryPoint {
 
-       private String appUri = "http://localhost:8080/tk/HelloWorld";
+       private String appUri = "http://127.0.0.1:8080/tk/HelloWorld";
        
        // TODO remove repaintAll things start to pile up
        private RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, appUri + "/UIDL/?repaintAll=1&");
@@ -85,7 +85,7 @@ public class Client implements EntryPoint {
                                }
                                public void onResponseReceived(Request request, Response response) {
                                        console.log("Got response:");
-                                       JSONValue update = JSONParser.parse(response.getText());
+                                       JSONValue update = JSONParser.parse("("+response.getText()+")");
                                        console.log(update.toString());
                                        handleUIDL(update.isObject());
                                }