]> source.dussan.org Git - vaadin-framework.git/commitdiff
Protyping with UIDL object
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 5 Jun 2007 16:38:02 +0000 (16:38 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 5 Jun 2007 16:38:02 +0000 (16:38 +0000)
svn changeset:1607/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/Client.java

index 990bb1edcf42348ecbc7568844b7dbbe8134c5cf..83104cdf1f9aabf800633a0ecc21dd6092075e5a 100755 (executable)
@@ -17,7 +17,6 @@ import com.google.gwt.json.client.JSONObject;
 import com.google.gwt.json.client.JSONParser;
 import com.google.gwt.json.client.JSONValue;
 import com.google.gwt.user.client.ui.RootPanel;
-import com.google.gwt.xml.client.Node;
 import com.itmill.toolkit.terminal.gwt.client.ui.Component;
 import com.itmill.toolkit.terminal.gwt.client.ui.RootWindow;
 
@@ -86,7 +85,15 @@ public class Client implements EntryPoint {
                                public void onResponseReceived(Request request, Response response) {
                                        console.log("Got response:");
                                        JSONValue update = JSONParser.parse("("+response.getText()+")");
+                                       
+                                       // TEST 
                                        console.log(update.toString());
+                                       try {
+                                       UIDL u = new UIDL((JSONObject)update);
+                                       console.log("\nUIDL = " + u);
+                                       } catch (Throwable e) {
+                                               e.printStackTrace();
+                                       }
                                        handleUIDL(update.isObject());
                                }
                        });