How can I pass an object as a parameter in the google app engine RPC flow?

Posted by jimmartens on Stack Overflow See other posts from Stack Overflow or by jimmartens
Published on 2010-05-27T05:42:18Z Indexed on 2010/05/27 5:51 UTC
Read the original article Hit count: 177

Filed under:
|

I'm building a pretty basic app, and one thing I want to do is pass an object as a parameter up through the service -> async -> impl instead of passing up a million separate parameters.

so in async, I do something like this:

import shared.Profile;
...
public interface ProfileServiceAsync {
    public void addProfile(Profile inProf, AsyncCallback<Void> async);

Now, profile is a class in com. ... .shared and I have the following in my ... .gwt.xml

<source path='shared'/>

That being said when I try to compile I get this error.

[ERROR] Errors in 'file:/D:/projects/eclipse/workspace/.../src/com/.../client/ProfileServiceAsync.java'
         [ERROR] Line 11: No source code is available for type shared.Profile; did you forget to inherit a required module?

Any ideas on this?

© Stack Overflow or respective owner

Related posts about gwt-rpc

Related posts about gae