Hi Charlie, While doing some testing, I've noticed that if an internal Restlet exception occurred during the processing of the call, the user callback wouldn't be called. I've just fixed it in SVN trunk.
Could you try again with an upcoming snapshot? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : Charlie Lye [mailto:[email protected]] Envoyé : mardi 11 août 2009 11:37 À : [email protected] Objet : GWT M4 Client.get() working in hosted mode, not in compiled. Hi there, I've tried the following on both Windows and OSX. Both work fine in hosted mode, but once I click Compile/Browse and check it in IE or Firefox it stops working. In the browsers it simply says "Getting..." and never receives a response. Not sure if I'm doing something wrong, but I would imagine if it works in hosted mode it *should* work in compiled mode. Perhaps Restlet GWT is using some language construct or class that cannot be translated into javascript? getButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { label.setText("Getting..."); final Client client = new Client(Protocol.HTTP); client.get("/items", new Uniform() { @Override public void handle(Request request, Response response, Uniform callback) { try { label.setText(response.getEntity().getText()); } catch (IOException e) { e.printStackTrace(); } } }); } }); ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23823 97 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386487

