I'm trying to POST a form from GWT client code to GAE server code.

The annotated interface shared by both sides is 

import org.restlet.client.data.Form;
import org.restlet.client.resource.Post;

public interface MyResource {
    @Post("form")
    void doSomething(Form form);
}

What's the right way to declare the server resource class?

If I do this:

import org.restlet.data.Form

public class MyServerResource extends ServerResource implements MyResource {
    public void doSomething(Form form) {}
}

it doesn't compile, since the server isn't implementing the inherited 
doSomething(org.restlet.client.data.Form) signature.

However, if I import org.restlet.client.data.Form instead, it compiles but I 
get a "class not found exception" at runtime, because the GWT version of 
org.restlet.jar is not in WAR/WEB-INF/lib.  My understanding was that it should 
not need to be.

What's the right way to do this?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2911895

Reply via email to