I understand what this issue is and basically how to solve it.
Namely, I need to create a module xml file for code that I want to use
in my client and inherit it in my client's xml module.
In my case, I have a widget that calls a service through GWT-RPC. The
service returns a simple DTO (that I define it in an external project
and bundle into a jar file and include it in my client's Eclipse
project)... I call it "gwt.Patient".
-Eclipse is good with what I've done [check]
-I use <inherits name='gwt.Patient' /> in client module xml. [check]
-I create gwt.Patient.gwt.xml (I know without this GWT compile will
immediately complains it can't find it) [check]
>From what I have read, this is all I need. Alas, it is not true.
Still I get "did you forget to inherit a module" when I do a GWT
compile for every class that references gwt.Patient (the service
interface, the async interface and the widget class).
I couple of things I have done to work around this ...
-turned on Debug level when compiling: I see GWT inheriting the
module. But I also see some indication of gwt.Patient being
"excluded" in some context - what context this is isn't clear from the
logging.
-the above made me think I needed to do something with <source/> tags
in the client's xml. I kinda understand this tag in that it includes
and excludes source from GWT compile. But I have yet to read a good
explanation of what 'path' means. At any rate when I do <source
path="???" includes="gwt.Patient"></source> I do get around the error
but then it complains ...
"Checking rule <generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
[ERROR] Unable to find type ...<my client widget class>"
ARGH!!!!
Anyone understand what's going on here and what I am doing wrong?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---