RE: status codes in GWT client - responding to validation or business exception

2012-11-15 Thread Thierry Boileau
Hi Koen, regarding the status and entity of the response, they are still available via the clientResource: final ContactResourceProxy contactResource = GWT.create(ContactResourceProxy.class); contactResource.getClientResource().setReference("/contacts/123"); contactResource.retrieve(new Result(

RE: status codes in GWT client - responding to validation or business exception

2012-11-15 Thread Koen Maes
Ha ok, didn't know that. Anyway, what I do now is : In case onFailure And status code = 200 And media type = HTML => I guess I was redirected.. I do a Window.reload() and the client ends up on the login screen; -- http://restlet.tigris.org/ds

RE: status codes in GWT client - responding to validation or business exception

2012-11-15 Thread Thierry Boileau
Hello Koen, regarding redirections, there is at this time no way to control the behaviour of the internal XmlHttpRequest object (http://stackoverflow.com/questions/228225/prevent-redirection-of-xmlhttprequest). It follows automatically the redirection. Best regards, Thierry Boileau --