you will probably need a separate gwt.xml module definition that
points to the source package of your pojos
I use to do it this way:
1. Create a Pojo.gwt.xml in your gwt project/org/mysite/core that
contains a <source path="model"/> tag
2. In your main module definition, inherit this new
org.mysite.core.Pojo module
The gwt compiler will now be able to find the sources of your classes
in org.mysite.core.model
On 30 Dez. 2010, 19:10, Sagadon <sagadongafri...@gmail.com> wrote:
> I'm trying to get GWT to pass POJOs created by MyBatis. The data
> objects are in a separate project, due to overall application
> complexity, and I'm trying to use the data objects on the client
> side. What this means is the source code for the data objects is not
> within the same project as GWT, and the gwtc ant target fails. The
> error I get is:
> "No source code is available for type org.mysite.core.model.Person;
> did you forget to inherit a required module?"
>
> How can I setup the ant target / IntelliJ project so that it
> recognizes either: a) the model jar file contains the source code, or
> b) the relative path to the source folder for the other project?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment