Even when adding NoTheme and NoScript before inheriting custom theme the gwt/smartgwt compiler continues to add a double entry for loading two skins in the nocache.js file. This file is a dynamically generated file that I cannot go out and touch each time it is generated. How do I stop the additional skin loading command from being generated?
SmartClient Version: SC_SNAPSHOT-2012-02-23_v8.2p/Pro Deployment (built 2012-02-23)
2. Forefox 10.0.2 - OSX
---------------application.gwt.xml file --------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.1//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.1.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='pc2'>
<!-- compile only for defined platform -->
<!-- <set-property name="user.agent" value="ie6" /> -->
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartgwtpro.SmartGwtProNoScript"/>
<inherits name="com.smartgwtpro.SmartGwtProNoTheme"/>
<inherits name="com.companyname.theme.customskin"/>
<inherits name="com.smartgwtpro.tools.Tools"/>
<servlet .....
<!-- Specify the app entry point class. -->
<entry-point class='com.company.client.Application'/>
<!-- Client source path -->
<source path="client" />
</module>
----- application.nocache.js --------
This gets a double entry for loading two skins each time...
if (!__gwt_scriptsLoaded['sc/skins/customskin/load_skin.js']) {
__gwt_scriptsLoaded['sc/skins/customskin/load_skin.js'] = true;
document.write('<script language="javascript" src="' + base + 'sc/skins/customskin/load_skin.js"><\/script>');
}
if (!__gwt_scriptsLoaded['sc/skins/Enterprise/load_skin.js']) {
__gwt_scriptsLoaded['sc/skins/Enterprise/load_skin.js'] = true;
document.write('<script language="javascript" src="' + base + 'sc/skins/Enterprise/load_skin.js"><\/script>');
}
Any help would be appreciated. I cannot go in and manually edit the nocache.js file every time the application is built by someone.
SmartClient Version: SC_SNAPSHOT-2012-02-23_v8.2p/Pro Deployment (built 2012-02-23)
2. Forefox 10.0.2 - OSX
---------------application.gwt.xml file --------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.1.1//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.1.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='pc2'>
<!-- compile only for defined platform -->
<!-- <set-property name="user.agent" value="ie6" /> -->
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartgwtpro.SmartGwtProNoScript"/>
<inherits name="com.smartgwtpro.SmartGwtProNoTheme"/>
<inherits name="com.companyname.theme.customskin"/>
<inherits name="com.smartgwtpro.tools.Tools"/>
<servlet .....
<!-- Specify the app entry point class. -->
<entry-point class='com.company.client.Application'/>
<!-- Client source path -->
<source path="client" />
</module>
----- application.nocache.js --------
This gets a double entry for loading two skins each time...
if (!__gwt_scriptsLoaded['sc/skins/customskin/load_skin.js']) {
__gwt_scriptsLoaded['sc/skins/customskin/load_skin.js'] = true;
document.write('<script language="javascript" src="' + base + 'sc/skins/customskin/load_skin.js"><\/script>');
}
if (!__gwt_scriptsLoaded['sc/skins/Enterprise/load_skin.js']) {
__gwt_scriptsLoaded['sc/skins/Enterprise/load_skin.js'] = true;
document.write('<script language="javascript" src="' + base + 'sc/skins/Enterprise/load_skin.js"><\/script>');
}
Any help would be appreciated. I cannot go in and manually edit the nocache.js file every time the application is built by someone.
Comment