Thanks for the reply.  Answers to your questions are:

1) Yes, my Common module is inherited in each of the *.gwt.xml files
in the other modules.

2) Yes, I included the Java source for the client-side in my Common
JAR file (see "NOTE" half-way down my original post).

3) Yes, the CSS, HTML and images (in an "images" folder) are in the
Commons module "public" folder and included in the JAR.

4) Yes, the Commons.gwt.xml file is included in the JAR.

Basically, the layout of the Common JAR file looks like:

META-INF/MANIFEST.MF
MyPackage.common.GWTModuleD/client/GWTModuleDEntryPoint.class
MyPackage.common.GWTModuleD/client/GWTModuleDEntryPoint.java
MyPackage.common.GWTModuleD/client -- *.class and *.java files for
models, UI widgets and RPC in their own subfolders
MyPackage.common.GWTModuleD/public -- *.css, *.html files
MyPackage.common.GWTModuleD/public/images -- *.png and *.gif files
MyPackage.common.GWTModuleD/server -- *.class and *.java files (yes, I
know the *.java files are not necessary here)
MyPackage.common.GWTModuleD/GWTModuleD.gwt.xml

MyPackage.common.gwt/client/AbstractCommonEntryPoint.class
MyPackage.common.gwt/client/AbstractCommonEntryPoint.java
MyPackage.common.gwt/client -- *.class and *.java files for models, UI
widgets and RPC in their own subfolders
MyPackage.common.gwt/public -- *.css, *.html files
MyPackage.common.gwt/public/images -- *.png and *.gif files
MyPackage.common.gwt/server -- *.class and *.java files (yes, I know
the *.java files are not necessary here)
MyPackage.common.gwt/Common.gwt.xml

The Common.gwt.xml file basically looks like:

<module>

    <inherits name="com.google.gwt.user.User"/>
    <inherits name="com.google.gwt.http.HTTP"/>

    <add-linker name="xs" />

    <stylesheet src='common.css'/>

    <entry-point
class='MyPackage.common.gwt.client.AbstractCommonEntryPoint'/>

    <servlet path='/ServiceA'
class='MyPackage.common.gwt.server.ServiceAImpl'/>

</module>

The module *.gwt.xml files in my Web app all pretty much basically
look like:

<module>

    <inherits name="MyPackage.common.gwt.Common"/>

    <stylesheet src='moduleA.css'/>

    <entry-point
class='MyPackage.MyApp.GWTModuleA.gwt.client.GWTModuleAEntryPoint'/>

    <servlet path='/ServiceB'
class='MyPackage.MyApp.GWTModuleA.gwt.server.ServiceBImpl'/>

</module>

MyPackage.common.GWTModuleD.client.GWTModuleDEntryPoint and
MyPackage.MyApp.GWTModuleA.gwt.client.GWTModuleAEntryPoint, etc., all
extend MyPackage.common.gwt.client.AbstractCommonEntryPoint which
includes common functionality that I wanted to inherit in other entry
point classes.  Yes, I know that each entry point onModuleLoad() is
called for every class in the inheritance chain, and this is currently
not a problem.

I hope this helps and I deeply appreciate the "extra eyes" looking
over the basic structures here (sorry I can't be more explicit with
the package and module names).  I also appreciate any ideas, hints,
tips and/or suggestions!  Thanks!

- Garry Archer



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to