I have a GWT project. Client code is located in the "client" dir. I want to attach an external java classes (mainly DTO classes) that are in a external project (directory). How to configure the gwt.xml file?
I get this kind of errors:
[ERROR] Errors in 'file: C:/myco/project-ui/src/com/domain/core/client/Myui.java' [ERROR] Line XX: No source code is available for type com.domain.client.Dto.SomeDto; did you forget to inherit a required module?
I'll try to be more specific. My workspace structure is like this:
- MyModel
- MyDao
- MyDto
- MyBf
- MyCommon
- MyUI - with myui.gwt.xml
The MyUi is a GWT application. In MyDto I have Java classes that define DTO (data transfer objects) that are common for the other projects. Therefore, I need that GWT takes files from this directory "MyDto" and compiles it as a client code. Is it possible at all? From what I see GWT allows only that the code MUST BE under client directory with GWT project.
I readed on the web and tried to define a module under MyDto project: Dto.gwt.xml in com.domain.client with:
<module>
<inherits name='com.google.gwt.user.User' />
<source path='dto'/> --- (to tell GWT to look in com.domain.client.dto package)
</module>
Added the corresponding inherit in Myui.gwt.xml <inherits name="com.domain.client.Dto"/> and still get the same error.
Thanks for your help.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment