Hi Charlie, I see your point regarding the lack of compilation error. I missed that in my previous reply. When doing the port, Thierry did test the compiled code in a browser and it worked. Which browser are you using exactly?
The benefits you get by using the Restlet API is the fact that you are not dealing with low-level HTTP artifacts yourself (mainly HTTP headers). No parsing or formatting to deal with. We also provide wrapper classes that facilitate the handling of JSON and XML results. Finally, we are working on the transparent serialization of Java objects between server-side Restlet and client-side GWT, requiring no change on the server-side if using the ServerResource classes. We will then achieve the same level of transparency as GWT-RPC, but within the RESTful world... 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 : [email protected] [mailto:[email protected]] Envoyé : mardi 25 août 2009 18:07 À : [email protected] Objet : RE: GWT M4 Client.get() working in hosted mode, not in compiled. Hi Jerome, Have tested the latest snapshot with your fix, but the problem remains. Just to clarify, it works fine in hosted mode. The problem is after GWT has compiled the client code to JavaScript. This could be a bug in GWT, because I would imagine that if it works in hosted mode, GWT should be able to compile it to working JavaScript. If Restlet is using some code structure or class that GWT cannot translate there should be compiler errors (in theory). Not really sure how to proceed, I'm not even sure what I'm gaining using the Resetlet GWT client classes, vs using GWT's inbuilt RequestBuilder class and using JSNI to deal with the returned JSON data. Perhaps someone can explain to me the benefits? As I do not understand the inner workings of either Restlet or GWT, I guess I will have to fall back to using GWT's inbuilt classes. If anyone else has successully used Restlets GWT client classes *after* compiling into JavaScript, it would be great to hear from them as we could compare code and hopefully track down the root cause of the issue. Ta, Charlie ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23872 11 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2388199

