While working on a site, I want to have several modules in my GWT project representing the different areas of the site. E.g : Statistics, Shopping, Messages, etc. Each being a different module.
On each of these pages, I want to insert the gwt <script> tag and pass on to it which module to load. E.g on messages page, it will only load + display the messages module, and so on.
Is that possible? E.g by setting a hidden form field, and have GWT get its value to determine which module to use?
If not, is it possible to compile each module separately? If so can you guide me a little on how to do it? (E.g, will there be a new folder made in the /war/ directory for each module, or would the files all be merged?)
You can compile each module separately, you just need to specify a entry-point for your modules like this:
Then, provide you have your module defined as
<module rename-to='moduleName'>in *.gwt.xml, you can load this module by insert<script type="text/javascript" language="javascript" src="moduleName/moduleName.nocache.js"></script>in your html.