RE: Restlet + GWT ConstraintViolation

2014-01-09 Thread Guillaume Pelletier
It's not an issue if you accept this format for all clients. I don't want to do that. I would need the ConverterService ultimately GwtConverter JsonConverter for a json client, etc... to be responsible for serialization otherwise when I use the same server code with a different client, then

RE: Restlet + GWT ConstraintViolation

2014-01-08 Thread Koen Maes
Hi Guillaume Generally speaking, in GWT you would like to have the constraint violations thrown the Editor framework on the client side. But there are of course some constraint violations that can only be checked server-side, e.g. unique violations that need a query to check the validity. For

RE: Restlet + GWT ConstraintViolation

2014-01-08 Thread Koen Maes
PS: deserialization on the client is not an issue. Every constraint violation is identified by a unique constant. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3071376

Re: Restlet GWT: ignore fields?

2011-08-24 Thread Joscha Feth
The answers are here: http://code.google.com/intl/hu-HU/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypesand here: http://gwt-code-reviews.appspot.com/47807 and here: http://timepedia.blogspot.com/2009/04/google-appengine-and-gwt-now-marriage.html In short: JDO

Re: Restlet GWT: ignore fields?

2011-08-23 Thread Joscha Feth
Even if I factor out an interface without the annotations and return this in the according ServerResource, it seems as if the GWT serializer still serializes protected fields on the implementation. Has anyone else seen this? Cheers, Joscha On Wed, Aug 24, 2011 at 04:47, Joscha Feth

RE: Re: Re: restlet-gwt serialization performance

2011-01-30 Thread Benibur
Well, in fact the problem was ... the development mode of GWT. As I could not understand the problem, I tried to deploy the web app on tomcat and then the performances were almost the same for json and gwt serialization... Strange ... But the performance remains surprising : in speed tracer I

Re: restlet-gwt serialization performance

2011-01-20 Thread Thierry Boileau
Hello Ben, that's very surprising. I personnally work on a GWT project for a customer. We handle quite big objects and the GWT serialisation/deserialisation is not a problem. In order to see what happens, did you try with a classic HTTP client, such as curl, or a clientResource (from the jse

RE: Re: restlet-gwt serialization performance

2011-01-20 Thread Benibur
Hello, thank's for the quick answer ! I tried with IE, FF and Chrome. The result is the same. I profiled the client with the Chrome plugin Speed Tracer : I thought there was no ambiguity. But I had a doubt because chrome is working strangely on my pc. I then created a simple restlet client in

Re: Re: restlet-gwt serialization performance

2011-01-20 Thread Thierry Boileau
Hello Ben, How many objects are listed in the Operations structure? Could you perhaps send a sample test case? Best regards, Thierry Boileau Hello, thank's for the quick answer ! I tried with IE, FF and Chrome. The result is the same. I profiled the client with the Chrome plugin Speed Tracer

RE: Restlet GWT.

2010-07-10 Thread Thierry Boileau
Hello Kevin, I've updated the issue with a sample application that works for me (http://restlet.tigris.org/issues/show_bug.cgi?id=1144). Could you have a look at it and check if it is right for you too? Best regards, Thierry Boileau --

RE: Restlet GWT.

2010-07-03 Thread Jerome Louvel
Technologies ~ http://www.noelios.com -Message d'origine- De : Kevin Daly [mailto:ked...@sqm.ca] Envoyé : mercredi 26 mai 2010 21:33 À : discuss@restlet.tigris.org Objet : RE: Restlet GWT. Ok, the workaround of running everything in Tomcat does not solve the problem for this one, so

RE: Restlet GWT.

2010-05-26 Thread Kevin Daly
Here is the stacktrace and the class that I was trying to serialize / deserialize. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2613741 stacktrace Description: Binary data /* * To change this template, choose Tools

RE: Restlet GWT.

2010-05-26 Thread Kevin Daly
Never mind it seems to be related to this 976 DEFECT P2 Google Wjlouvel STARTE GWT 2.0 dev mode not supported under Firefox --

RE: Restlet GWT.

2010-05-26 Thread Kevin Daly
Ok, the workaround of running everything in Tomcat does not solve the problem for this one, so it is maybe not related. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2613746

RE: Re: Restlet GWT: Problem with HTTP POST request in Firefox

2010-04-23 Thread Jerome Louvel
-Message d'origine- De : Ivan Jaramillo [mailto:i...@elniuton.com] Envoyé : mardi 23 mars 2010 23:33 À : discuss@restlet.tigris.org Objet : RE: Re: Restlet GWT: Problem with HTTP POST request in Firefox See this for firefox OPTIONS method and the comon same-origin policy: https

RE: Re: Restlet GWT RPC 2.0 ** SOLVED **

2010-02-17 Thread Jerome Louvel
: Restlet GWT RPC 2.0 ** SOLVED ** I got it working, the issue was dependencies. I needed to include the gwt extension in classpath of my Servlet Based application. I also needed to add the GWT 2.0 libraries to the Servlet app. I will write up a document with examples so that anyone else that has

RE: Re: Restlet GWT RPC 2.0

2010-02-17 Thread Thierry Boileau
Hello Niclas and all, sorry for not having reported that before, but this bug has been fixed by the 2.0m7. You should be able to plainly use IDEA. Best regards, Thierry Boileau --

Re: Restlet GWT RPC 2.0

2010-01-16 Thread Valdis Rigdon
I'm still seeing these on the latest snapshots as well. As a workaround, I've been using the GWT version bundled with the example serialization application from the wiki, but using the snapshot versions for other editions. That seems to work fine for me, at least in the short term. Valdis

Re: Restlet GWT RPC 2.0

2010-01-16 Thread Niclas Hedhman
On Sat, Jan 16, 2010 at 11:42 PM, Valdis Rigdon valdis.rig...@gmail.com wrote: I'm still seeing these on the latest snapshots as well.  As a workaround, I've been using the GWT version bundled with the example serialization application from the wiki, but using the snapshot versions for other

Re: Re: Restlet GWT RPC 2.0

2010-01-15 Thread Niclas Hedhman
And suddenly a new one showed up (I don't use ServiceList AFAIK); [INFO] [ERROR] Errors in 'jar:file:/Users/niclas/.m2/repository/org/restlet/gwt/org.restlet/2.0-SNAPSHOT/org.restlet-2.0-SNAPSHOT.jar!/org/restlet/client/util/ServiceList.java' [INFO] [ERROR] Line 66: The method

RE: Re: Restlet GWT RPC 2.0

2010-01-13 Thread Kevin Daly
It's now compiling for me. The errors don't seem to cause any issues. I guess it will all be worked out in the next milestone. see this post in the bug tracker. http://restlet.tigris.org/issues/show_bug.cgi?id=1004 My last post is how I got it all working.

Re: Re: Restlet GWT RPC 2.0

2010-01-13 Thread Tim Peierls
It's still pretty annoying to have to drag in servlets. Is it really too hard to extract the important parts of GwtShellServlet into a Restlet? --tim On Wed, Jan 13, 2010 at 8:46 AM, Kevin Daly ked...@sqm.ca wrote: It's now compiling for me. The errors don't seem to cause any issues. I guess

Re: Re: Restlet GWT RPC 2.0

2010-01-13 Thread Niclas Hedhman
On Wed, Jan 13, 2010 at 9:46 PM, Kevin Daly ked...@sqm.ca wrote: It's now compiling for me. The errors don't seem to cause any issues. I guess it will all be worked out in the next milestone. see this post in the bug tracker. http://restlet.tigris.org/issues/show_bug.cgi?id=1004 Not sure

Re: Restlet GWT - JAX-RS

2010-01-11 Thread aloleary
That's what I thought - thanks for the quick confirmation ! Thierry Boileau wrote: Hello, yes, for the quick answer. The interface, that is to say the resources and their methods, implemented using jax-rs is completely unaware of the kind of client. You should be able to request such

Re: Restlet GWT RPC 2.0

2010-01-07 Thread Valdis Rigdon
As a follow up, something between the Dec 17th build and the Jan 6 build has broken the GWT version. I have the same project using the JARs from the serialization example (http://wiki.restlet.org/docs_2.0/13-restlet/181-restlet/303-restlet.html) in Eclipse and the project will compile via GWT.

RE: Re: Restlet GWT RPC 2.0 ** SOLVED **

2010-01-07 Thread Kevin Daly
I got it working, the issue was dependencies. I needed to include the gwt extension in classpath of my Servlet Based application. I also needed to add the GWT 2.0 libraries to the Servlet app. I will write up a document with examples so that anyone else that has this problem can fix it. I

RE: Restlet GWT RPC 2.0

2010-01-05 Thread webpost
Thanks for your response. I've used the latest build and I still have the same problem. So here's what I have found, the code fails in JavaScript with this call. eval({\ca.sqm.gwt.client.tabs.websitea.TestCase\:{\firstName\:\Daly\,\lastName\:\Kevin\,\age\:41}}) If I try to run this code in

Re: Restlet GWT RPC 2.0

2010-01-05 Thread Jerome Louvel
Hi, The Javascript is generated by GWT directly, so it could be a GWT issue, but we would first like to reproduce your issue. Could you enter a bug report in our issue tracker and attach a simple project reproducing the issue? http://www.restlet.org/community/issues Best regards, Jerome Louvel

RE: Restlet GWT RPC 2.0

2010-01-01 Thread Jerome Louvel
[mailto:ked...@sqm.ca] Envoyé : jeudi 31 décembre 2009 17:35 À : discuss@restlet.tigris.org Objet : RE: Restlet GWT RPC 2.0 To give some more insight on the problem. When I run the code in the debugger the code fails on line 229 of ClientAdapter.java. This line. userCallback.handle(request

RE: Restlet GWT RPC 2.0

2009-12-31 Thread Kevin Daly
To give some more insight on the problem. When I run the code in the debugger the code fails on line 229 of ClientAdapter.java. This line. userCallback.handle(request, response); I've looked at it in the debugger and there's no method to handle in the Proxy Class that I provided, the

RE: Restlet GWT: Problem with HTTP POST request in Firefox

2009-11-12 Thread webpost
Using GWT 1.7.0, all GET method calls work in Hosted mode and IE, but Firefox *still* uses OPTIONS. I suggest promoting this issue to blocker for the GWT version of Restlet. Using (taken from JAR manifest): Name: org.restlet.gwt Implementation-Title: org.restlet.gwt Implementation-Version: 2.0

Re: Restlet GWT: Problem with HTTP POST request in Firefox

2009-11-12 Thread Thierry Boileau
Hello, I've made a successful test with the current snapshot. Could you give it a try? If it still fails, could you send us a reproductible test case? Best regards, Thierry Boileau Using GWT 1.7.0, all GET method calls work in Hosted mode and IE, but Firefox *still* uses OPTIONS. I suggest

RE: Restlet GWT: Problem with HTTP POST request in Firefox

2009-10-20 Thread Thierry Boileau
Hello all, This bug has not been reproduced with the current snapshot available. best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409331

RE: Restlet GWT: Problem with HTTP POST request in Firefox

2009-10-06 Thread webpost
Hi, I'm using Restlet 2.0 M5, and also tried with the Restlet 2.0 snapshot and I've the same problem, Firebug shows that it calls the OPTIONS method instead of POST when using compiled mode in Firefox. Any ideas? This should be fixed on M5? Thanks!

RE: Restlet GWT issue with Response.getEntity()

2009-09-29 Thread Jerome Louvel
Hi Johannes, Thanks for clearly exposing your issue. Regarding the missing entity, you should try again with Restlet 2.0 M5 which fixed this bug (it used to work in hosted mode but not in compiled mode). If it still doesn't work, please let us know. Regarding transparent serialization, we are

RE: Restlet GWT: Problem with HTTP POST request in Firefox

2009-09-29 Thread Jerome Louvel
Hi Daniel, We suggest that you try again with Restlet 2.0 M5, this should be fixed. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org/ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com/ http://www.noelios.com

Re: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread mstricker
Any ideas? It is urgent. Could it be because my RESTlet is deployed to a server and the GWT client runs on localhost and there are some security constraints? mstricker wrote: Hi, I have never worked with GWT or Restlet GWT but now have the need to consume a simple Restlet service from

RE: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread Jerome Louvel
d'origine- De : mstricker [mailto:m...@maxstricker.it] Envoyé : mardi 16 juin 2009 10:39 À : discuss@restlet.tigris.org Objet : Re: Restlet GWT - ChallengeResponse null on server side Any ideas? It is urgent. Could it be because my RESTlet is deployed to a server and the GWT client runs

Re: Restlet GWT - ChallengeResponse null on server side

2009-06-16 Thread Rob Heittman
:* mardi 16 juin 2009 22:28 *À :* disc...@...http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=3088700i=1 *Objet :* Re: Restlet GWT - ChallengeResponse null on server side Hi, thanks for your reply. I waited the whole day. Here my configuration: Apache Tomcat/6.0.18 JVM Version

Re: Restlet-GWT: Status + LocationRef

2008-11-16 Thread Rob Heittman
Hi Damian, This is due to an issue in the embedded Tomcat server used in GWT Hosted Mode. When sending a redirect, you must (ignoring the Restlet warning to the contrary) supply some sort of entity. Otherwise, the hosted mode Tomcat server will replace it with a generic 200 response. It's not

Re: Restlet-GWT: Status + LocationRef

2008-11-16 Thread Thierry Boileau
Hi Damian, if you want to keep your resources intact, just add a filter as the root Restlet of yourRestlet application which tests the Response status in the afterHandle method. best regards, Thierry Hi Damian, This is due to an issue in the embedded Tomcat server used in GWT Hosted

Re: Restlet-GWT: Status + LocationRef

2008-11-16 Thread Damian Harden
Hi Rob, That worked a treat. Thanks! :-) Code which looks like the following ensures a Status and LocationRef are picked up in Restlet-GWT: @Override public void storeRepresentation(Representation entity) throws ResourceException { addSomething(); getResponse().setEntity(new

Re: Restlet-GWT HTTP authentication example

2008-10-18 Thread Mark Petrovic
Thank you. Mark On Oct 17, 2008, at 11:26 AM, Thierry Boileau wrote: Hello Mark, I've updated the sample application and its description: http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/144- restlet.html Best regards, Thierry Boileau -- Restlet ~ Core developer ~

Re: Restlet-GWT HTTP authentication example

2008-10-17 Thread Thierry Boileau
Hello Mark, I've updated the sample application and its description: http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/144-restlet.html Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org http://www.restlet.org/ Noelios Technologies ~ Co-founder ~

Re: Restlet-GWT HTTP authentication example

2008-10-15 Thread Mark Petrovic
Thierry, good day. Is there sample code available showing how to use the HTTP Digest authentication scheme? On Oct 14, 2008, at 7:08 AM, Thierry Boileau wrote: Hello Mark, the current sample GWT application has been updated with authentication, and usage of JSON and XML representations.

Re: Restlet-GWT HTTP authentication example

2008-10-14 Thread Thierry Boileau
Hello Mark, the current sample GWT application has been updated with authentication, and usage of JSON and XML representations. See http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/144-restlet.html. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org

Re: Restlet-GWT HTTP authentication example

2008-10-14 Thread Mark Petrovic
Thank you! Mark On Oct 14, 2008, at 7:08 AM, Thierry Boileau wrote: Hello Mark, the current sample GWT application has been updated with authentication, and usage of JSON and XML representations. See http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/144-restlet.html . Best regards,

Re: Restlet-GWT HTTP authentication example

2008-10-14 Thread Duong BaTien
Wow. Thanks. Will find time to take a look at it. Dr. Duong Batien DBGROUPS and BudhNet On Tue, 2008-10-14 at 16:08 +0200, Thierry Boileau wrote: Hello Mark, the current sample GWT application has been updated with authentication, and usage of JSON and XML representations. See

Re: Restlet-GWT HTTP authentication example

2008-10-07 Thread Thierry Boileau
Hi all, I'm working on this (http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/144-restlet.html)! I have to complete the existing sample basic application with authentication. I hope to finish it today or tomorrow. I'll keep you informed. Best regards, Thierry Boileau -- Restlet ~ Core

Re: Restlet-GWT HTTP authentication example

2008-10-06 Thread Rob Heittman
Just wanted to post (had talked to Mark offlist about this) that I am working on an official example, but won't be done till later this month when I get back from travel. Happy to canonize anybody's practical experience in the meantime ... On Mon, Oct 6, 2008 at 6:32 PM, Mark Petrovic [EMAIL

RE: Restlet-GWT basic authentication possibility...

2008-09-16 Thread Jerome Louvel
: discuss@restlet.tigris.org Objet : Re: Restlet-GWT basic authentication possibility... Sounds good. /Rasmus On Wed, Sep 10, 2008 at 8:26 PM, Rob Heittman [EMAIL PROTECTED] wrote: Sounds perfectly reasonable. I think Jerome's still on vacation -- I'll try my hand at implementing it. On Wed

Re: Restlet-GWT basic authentication possibility...

2008-09-11 Thread Rasmus Agerholm
Sounds good. /Rasmus On Wed, Sep 10, 2008 at 8:26 PM, Rob Heittman [EMAIL PROTECTED]wrote: Sounds perfectly reasonable. I think Jerome's still on vacation -- I'll try my hand at implementing it. On Wed, Sep 10, 2008 at 1:26 PM, Rasmus Agerholm [EMAIL PROTECTED]wrote: Would it be

Re: Restlet-GWT basic authentication possibility...

2008-09-10 Thread Rob Heittman
Sounds perfectly reasonable. I think Jerome's still on vacation -- I'll try my hand at implementing it. On Wed, Sep 10, 2008 at 1:26 PM, Rasmus Agerholm [EMAIL PROTECTED]wrote: Would it be possible to use this GWT feature to implement support for basic authentication?

Re: Restlet-GWT compile error

2008-08-03 Thread Doug Alcouffe
Thanks Rob. I created a very simple application using the GWT applicationCreator and I have attached. I just added one line to the client Foo.java class that makes a org.restlet.gwt.Client.get() method call. I have modified the Foo-compile script to include the path to the

Re: Restlet-GWT compile error

2008-08-02 Thread Doug Alcouffe
Hey Rob, Thanks for the reply. I am on Linux (Ubuntu 8.04) and using GWT 1.5RC1. The one thing that may be different is that I am using the GWT Maven 2 plugin for my builds. I have attached a simple example (default that gets created with the GWT Maven archtype) that is a simple GWT-RPC