Share SmartGWT /sc folder over several modules

I would like to point to where there is a method that works, but isn´t really optimal because it copies theme styles and other resources several times to all the modules. This is just an improvement to that approach.

Create a base GWT Module:


<module rename-to="basegwt">

<inherits name=''/>
<inherits name='com.smartgwt.SmartGwtNoSmartClient'/>


Create a module for only serving smartgwt /sc folder:


<module rename-to='smartgwt'>
<inherits name='com.smartgwt.SmartGwt'/>

Create several modules like this one:


<module rename-to="gwtmodule">

<inherits name='com.kprtech.gwt.BaseGWTModule'/>

<entry-point class='com.example.EntryPoint'/>


Then in the html use something like:


<script type="text/javascript" language="javascript" src="gwtmodule/gwtmodule.nocache.js"></script>
<script> var isomorphicDir = "smartgwt/sc/"; </script>

3 thoughts on “Share SmartGWT /sc folder over several modules”

Leave a Reply

Your email address will not be published.

WP2Social Auto Publish Powered By :