I am new for SmartGWT and try to set a theme. According to the quick start guide I need to change my.gwt.xml file.
I have commented the default Enterprise theme and added the Tahoe theme like this.
<inherits name="com.smartgwtee.SmartGwtEENoTheme"/>
<!-- <inherits name="com.smartclient.theme.enterprise.Enterprise"/> -->
<inherits name="com.smartclient.theme.tahoe.Tahoe"/>
The GWT CodeServer logs:
=== 2019-08-22 09:57:49,093 [main] INFO ISCInit - Auto-detected webRoot - using: J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war
Linking modules
Bootstrap link for command-line module 'com.smartgwt.sample.BuiltInDS'
Linking module 'builtinds'
Invoking Linker Cross-Site-Iframe
Ignoring the following script tags in the gwt.xml file
sc/initsc.js
sc/modules/ISC_Core.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Foundation.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Containers.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Grids.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Forms.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_RichTextEditor.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Calendar.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_DataBinding.js?isc_version=12.0p_2019-08-18.js
sc/skins/Tahoe/load_skin.js
Invoking Linker SmartGwtScriptInjector
Creating loadScriptTagFiles.js to manually load the following script tags:
sc/initsc.js
sc/modules/ISC_Core.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Foundation.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Containers.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Grids.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Forms.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_RichTextEditor.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Calendar.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_DataBinding.js?isc_version=12.0p_2019-08-18.js
sc/skins/Tahoe/load_skin.js
You can see Tahoe is named!
But the browser keeps fetching the Enterprise skin (I can see in the servers console) when I refresh the webpage (using Ctrl+F5):
=== 2019-08-22 10:00:30,483 [0-51] INFO Download - done streaming: J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/load_skin.js
=== 2019-08-22 10:00:30,485 [0-51] INFO Compression - /builtinds/sc/skins/Enterprise/load_skin.js: 78378 -> 12748 bytes
=== 2019-08-22 10:00:30,587 [0-66] INFO RequestContext - URL: '/builtinds/sc/skins/Enterprise/skin_styles.css', User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36': Safari with Accept-Encoding header
=== 2019-08-22 10:00:30,630 [0-66] INFO Download - done streaming: J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/skin_styles.css
=== 2019-08-22 10:00:30,634 [0-66] INFO Compression - /builtinds/sc/skins/Enterprise/skin_styles.css: 392870 -> 33493 bytes
=== 2019-08-22 10:00:30,669 [0-46] INFO RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36': Safari with Accept-Encoding header
I have tried it in several browser and cleared the browsers cache, but it still fetches the Enterprise skin. What am I doing wrong?
Thanks.
I have commented the default Enterprise theme and added the Tahoe theme like this.
<inherits name="com.smartgwtee.SmartGwtEENoTheme"/>
<!-- <inherits name="com.smartclient.theme.enterprise.Enterprise"/> -->
<inherits name="com.smartclient.theme.tahoe.Tahoe"/>
The GWT CodeServer logs:
=== 2019-08-22 09:57:49,093 [main] INFO ISCInit - Auto-detected webRoot - using: J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war
Linking modules
Bootstrap link for command-line module 'com.smartgwt.sample.BuiltInDS'
Linking module 'builtinds'
Invoking Linker Cross-Site-Iframe
Ignoring the following script tags in the gwt.xml file
sc/initsc.js
sc/modules/ISC_Core.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Foundation.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Containers.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Grids.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Forms.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_RichTextEditor.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Calendar.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_DataBinding.js?isc_version=12.0p_2019-08-18.js
sc/skins/Tahoe/load_skin.js
Invoking Linker SmartGwtScriptInjector
Creating loadScriptTagFiles.js to manually load the following script tags:
sc/initsc.js
sc/modules/ISC_Core.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Foundation.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Containers.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Grids.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Forms.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_RichTextEditor.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_Calendar.js?isc_version=12.0p_2019-08-18.js
sc/modules/ISC_DataBinding.js?isc_version=12.0p_2019-08-18.js
sc/skins/Tahoe/load_skin.js
You can see Tahoe is named!
But the browser keeps fetching the Enterprise skin (I can see in the servers console) when I refresh the webpage (using Ctrl+F5):
=== 2019-08-22 10:00:30,483 [0-51] INFO Download - done streaming: J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/load_skin.js
=== 2019-08-22 10:00:30,485 [0-51] INFO Compression - /builtinds/sc/skins/Enterprise/load_skin.js: 78378 -> 12748 bytes
=== 2019-08-22 10:00:30,587 [0-66] INFO RequestContext - URL: '/builtinds/sc/skins/Enterprise/skin_styles.css', User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36': Safari with Accept-Encoding header
=== 2019-08-22 10:00:30,630 [0-66] INFO Download - done streaming: J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/skin_styles.css
=== 2019-08-22 10:00:30,634 [0-66] INFO Compression - /builtinds/sc/skins/Enterprise/skin_styles.css: 392870 -> 33493 bytes
=== 2019-08-22 10:00:30,669 [0-46] INFO RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36': Safari with Accept-Encoding header
I have tried it in several browser and cleared the browsers cache, but it still fetches the Enterprise skin. What am I doing wrong?
Thanks.
Comment