Re: Creating Stand Alone Composite??
Manolo, Thank you very much for the info! While I wasn't able to compile without an entry-point (the com/module1/Include.gwt.xml from you example was causing problems as it seems to want an entry-point to be able to compile) I was able to create a dummy entry point. That gave me the same result as your example, and I'm now able to do what I wanted. Thank you very much! On Jul 19, 1:16 am, Manuel Carrasco manuel.carrasc...@gmail.com wrote: 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 todd.prick...@gmail.com 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating Stand Alone Composite??
Thanks Bruno and Manolo! When I compiled (from the GWT plugin to Eclipse) I got an error saying my .xml file was missing the entry point element. I worked around this by simply creating a dummy entry-point and was able to move on. Thanks again! On Jul 19, 11:03 am, Nuno brun...@gmail.com wrote: If you create a new project with a module, dont add any entrypoint to this module.Then create all the composites you want in this module. after you may create a jar file of this project (to use anywhere) or you can just import this project into yours (click properties - java build path - projects and add your project - if you have the jar file click on libraries and add the jar.) Then just go to your gwt.xml file and add a line like: inherits name=path.to.your.gwt.xml.File/ the File is the name of the gwt.xml file. example: if the path to gwt.xml file is: com.test.toolkit.Toolkit.gwt.xml put: = com.test.toolkit.Toolkit This way, you can create many modules in the toolkit project, and group the composites by functionality. []s, Bruno BIlescky On Sat, Jul 18, 2009 at 11:40 PM, ToddP todd.prick...@gmail.com 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 -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - http://tcninja.blogspot.com --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating Stand Alone Composite??
If you create a new project with a module, dont add any entrypoint to this module.Then create all the composites you want in this module. after you may create a jar file of this project (to use anywhere) or you can just import this project into yours (click properties - java build path - projects and add your project - if you have the jar file click on libraries and add the jar.) Then just go to your gwt.xml file and add a line like: inherits name=path.to.your.gwt.xml.File/ the File is the name of the gwt.xml file. example: if the path to gwt.xml file is: com.test.toolkit.Toolkit.gwt.xml put: = com.test.toolkit.Toolkit This way, you can create many modules in the toolkit project, and group the composites by functionality. []s, Bruno BIlescky On Sat, Jul 18, 2009 at 11:40 PM, ToddP todd.prick...@gmail.com 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 -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - http://tcninja.blogspot.com --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Creating Stand Alone Composite??
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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating Stand Alone Composite??
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 todd.prick...@gmail.com 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---