If you have the composite, create a new .gwt.xml file in this module without
any entry-point tag and include this new .gwt.xml file in the other module.

For instance:
- you have your composite in the name space 'com.module1.client'  and the
content of com/module1/Module1.gwt.xml is:
<module>
    <inherits name='com.google.gwt.user.User' />
    <entry-point class="com.module1.client.Module1"/>
</module>
- you want to use your composite in com.application.client whose
com/application/Application.gwt.xml is
<module>
    <inherits name='com.google.gwt.user.User' />
    <entry-point class="com.module1.client.Module1"/>
</module>
- create a new file in module1: com/module1/Include.gwt.xml
<module>
    <inherits name='com.google.gwt.user.User' />
</module>
- Modify your application's descriptor
<module>
    <inherits name='com.google.gwt.user.User' />
    <inherits name='com/application/Application'/>
    <entry-point class="com.module1.client.Module1"/>
</module>

You have to be sure that all the source classes are in your classpath.

BTW: You can pack set of composites and widgets taking care that the
module's descriptor has no any entry-point tag and the .jar file contains
the java source files.


Manolo Carrasco

On Sun, Jul 19, 2009 at 4:40 AM, ToddP <[email protected]> wrote:

>
> I'm trying to create a stand alone composite widget and am totally
> clueless as to how. I want to create a widget that will be able to be
> used in any of my multiple GWT modules.
>
> Every example on the web that I can find defines the composite in the
> same module that displays the composite.  I need to see an example of
> two modules, one defining the composite and one that consumes the
> composite.
>
> If anyone has an example or can point to a web article showing how,
> I'd GREATLY appreciate it.
>
> TIA
>
> >
>

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