--- /dev/null
+<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>
*/
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&");
}
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());
}