Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Switching theme is not working

    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.

    #2
    These logs cannot coexist. What is likely happening is that you have started a new instance of the codeserver at a new URL and you continue to reload at a URL where you previously started another instance.

    Restarting your IDE might clarify what’s going on.

    Comment


      #3
      I have restart my IDE, start the codeserver and reopend the browser. Theme Tahoe is still not used.
      Here is the complete log:

      Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war, -logLevel, INFO, -style, OBFUSCATED, com.smartgwt.sample.BuiltInDS]
      Super Dev Mode starting up
      workDir: C:\Users\olaf.XSODOMAIN\AppData\Local\Temp\gwt-codeserver-7064175729613731880.tmp
      log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      Loading Java files in com.smartgwt.sample.BuiltInDS.
      Module setup completed in 50825 ms

      The code server is ready at http://127.0.0.1:9876/
      Code server started in 51.60 s ms
      ISC: Configuring log4j from: file:/J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/WEB-INF/classes/log4j.isc.config.xml
      log4j:WARN No such property [encoding] in com.isomorphic.log.RevolvingMemoryAppender.
      === 2019-08-22 11:18:29,282 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
      === 2019-08-22 11:18:29,300 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
      === 2019-08-22 11:18:29,351 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
      === 2019-08-22 11:18:29,352 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
      === 2019-08-22 11:18:29,353 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
      === 2019-08-22 11:18:29,356 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
      === 2019-08-22 11:18:29,357 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
      === 2019-08-22 11:18:29,361 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/J:/Components/smartgwt/smartgwtee-12.0p/samples/built-in-ds/war/WEB-INF/classes/server.properties
      === 2019-08-22 11:18:29,367 [main] INFO Logger - Logging system started.
      === 2019-08-22 11:18:29,392 [main] INFO ISCInit - Bound DB defaultDatabase via JNDI at: isomorphic/jdbc/defaultDatabase
      === 2019-08-22 11:18:29,392 [main] INFO ISCInit - No ServletContext available yet - using container IO for now
      === 2019-08-22 11:18:29,392 [main] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework (v12.0p_2019-08-18/EVAL Deployment 2019-08-18) - Initialization Complete
      === 2019-08-22 11:18:29,400 [main] INFO MessagingWebSocketEndpoint - Registering Realtime Messaging endpoint at: /isomorphic/websocket
      === 2019-08-22 11:18:29,552 [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
      === 2019-08-22 11:18:54,337 [8-46] INFO RequestContext - URL: '/builtinds/sc/DataSourceLoader', 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 11:18:54,410 [8-48] INFO Compression - /builtinds/builtinds.nocache.js: 2473 -> 1220 bytes
      === 2019-08-22 11:18:54,544 [8-49] INFO Compression - /builtinds/sc/initsc.js: 47 -> 72 bytes
      === 2019-08-22 11:18:54,600 [8-50] INFO Compression - /builtinds/sc/modules/ISC_Containers.js: 167567 -> 38789 bytes
      === 2019-08-22 11:18:54,737 [8-47] INFO Compression - /builtinds/sc/modules/ISC_Foundation.js: 378377 -> 88226 bytes
      === 2019-08-22 11:18:54,751 [8-54] INFO Compression - /builtinds/sc/modules/ISC_Grids.js: 1100982 -> 280394 bytes
      === 2019-08-22 11:18:54,861 [8-48] INFO Compression - /builtinds/sc/modules/ISC_RichTextEditor.js: 63767 -> 16528 bytes
      === 2019-08-22 11:18:54,863 [8-49] INFO Compression - /builtinds/sc/modules/ISC_Calendar.js: 287700 -> 69601 bytes
      === 2019-08-22 11:18:54,883 [8-51] INFO Compression - /builtinds/sc/modules/ISC_Core.js: 1278448 -> 334110 bytes
      === 2019-08-22 11:18:55,008 [8-52] INFO Compression - /builtinds/sc/modules/ISC_Forms.js: 1014555 -> 245956 bytes
      === 2019-08-22 11:18:55,086 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\builtinds\sc\system\schema\builtinTypes.xml: 36ms
      === 2019-08-22 11:18:55,098 [8-50] INFO Compression - /builtinds/sc/modules/ISC_DataBinding.js: 1002765 -> 240559 bytes
      === 2019-08-22 11:18:55,172 [8-46] INFO PoolManager - SmartClient pooling started for 'simpleTypes' objects
      === 2019-08-22 11:18:55,457 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\ds\supplyItem.ds.xml: 4ms
      === 2019-08-22 11:18:55,467 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\builtinds\sc\system\schema\DataSource.ds.xml: 7ms
      === 2019-08-22 11:18:55,667 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\builtinds\sc\system\schema\DataSourceField.ds.xml: 13ms
      === 2019-08-22 11:18:55,772 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\builtinds\sc\system\schema\ValueMap.ds.xml: 12ms
      === 2019-08-22 11:18:55,805 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\builtinds\sc\system\schema\Validator.ds.xml: 16ms
      === 2019-08-22 11:18:55,933 [8-46] DEBUG DataSourceLoader - For DataSource 'supplyItem', got instanceId 10
      === 2019-08-22 11:18:55,962 [8-46] DEBUG JSTranslater - disableStringInBrowser = false
      === 2019-08-22 11:18:55,973 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\ds\animals.ds.xml: 5ms
      === 2019-08-22 11:18:55,979 [8-46] DEBUG DataSourceLoader - For DataSource 'animals', got instanceId 14
      === 2019-08-22 11:18:55,989 [8-46] DEBUG XML - Parsed XML from J:\Components\smartgwt\smartgwtee-12.0p\samples\built-in-ds\war\ds\employees.ds.xml: 5ms
      === 2019-08-22 11:18:55,996 [8-46] DEBUG DataSourceLoader - For DataSource 'employees', got instanceId 18
      === 2019-08-22 11:18:55,999 [8-46] INFO Compression - /builtinds/sc/DataSourceLoader: 4796 -> 1918 bytes
      === 2019-08-22 11:18:56,035 [8-47] 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
      GET /recompile/builtinds
      Job com.smartgwt.sample.BuiltInDS_1_0
      starting job: com.smartgwt.sample.BuiltInDS_1_0
      binding: user.agent=safari
      Compiling module com.smartgwt.sample.BuiltInDS
      Unification traversed 605 fields and methods and 182 types. 0 are considered part of the current module and 8 had all of their fields and methods traversed.
      Compiling 1 permutation
      Compiling permutation 0...
      Linking per-type JS with 0 new/changed types.
      Source Maps Enabled
      Compile of permutations succeeded
      Compilation succeeded -- 2,347s
      Linking into C:\Users\olaf.XSODOMAIN\AppData\Local\Temp\gwt-codeserver-7064175729613731880.tmp\com.smartgwt.sample.BuiltInDS\compile-2\war\builtinds; Writing extras to C:\Users\olaf.XSODOMAIN\AppData\Local\Temp\gwt-codeserver-7064175729613731880.tmp\com.smartgwt.sample.BuiltInDS\compile-2\extras\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
      Link succeeded
      Linking succeeded -- 5,389s
      34,178s total -- Compile completed
      GET /sourcemaps/builtinds/C34ED5C0E17CBFADC09B2C3736EAAE1E_sourcemap.json
      sent source map for module 'builtinds' in 21 ms
      === 2019-08-22 11:19:41,939 [8-50] INFO RequestContext - URL: '/BuiltInDS.html', 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 11:19:41,968 [8-50] INFO Compression - /BuiltInDS.html: 2019 -> 851 bytes
      === 2019-08-22 11:19:41,980 [8-49] INFO RequestContext - URL: '/builtinds/builtinds.nocache.js', 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 11:19:41,980 [8-47] INFO RequestContext - URL: '/builtinds/loadScriptTagFiles.js', 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 11:19:41,983 [8-51] INFO RequestContext - URL: '/builtinds/sc/DataSourceLoader', 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 11:19:41,989 [8-51] DEBUG DataSourceLoader - For DataSource 'supplyItem', got instanceId 10
      === 2019-08-22 11:19:41,996 [8-51] DEBUG DataSourceLoader - For DataSource 'animals', got instanceId 14
      === 2019-08-22 11:19:42,004 [8-51] DEBUG DataSourceLoader - For DataSource 'employees', got instanceId 18
      === 2019-08-22 11:19:42,006 [8-47] INFO Compression - /builtinds/loadScriptTagFiles.js: 2958 -> 370 bytes
      === 2019-08-22 11:19:42,006 [8-49] INFO Compression - /builtinds/builtinds.nocache.js: 2473 -> 1220 bytes
      === 2019-08-22 11:19:42,009 [8-51] INFO Compression - /builtinds/sc/DataSourceLoader: 4796 -> 1918 bytes
      === 2019-08-22 11:19:42,017 [8-52] INFO RequestContext - URL: '/builtinds/sc/initsc.js', 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 11:19:42,017 [8-54] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_Core.js', 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 11:19:42,022 [8-46] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_Foundation.js', 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 11:19:42,023 [8-50] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_Containers.js', 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 11:19:42,025 [8-47] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_Grids.js', 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 11:19:42,025 [8-49] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_Forms.js', 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 11:19:42,036 [8-52] INFO Compression - /builtinds/sc/initsc.js: 47 -> 72 bytes
      === 2019-08-22 11:19:42,039 [8-51] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_RichTextEditor.js', 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 11:19:42,098 [8-46] INFO Compression - /builtinds/sc/modules/ISC_Foundation.js: 378377 -> 88226 bytes
      === 2019-08-22 11:19:42,102 [8-52] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_Calendar.js', 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 11:19:42,104 [8-50] INFO Compression - /builtinds/sc/modules/ISC_Containers.js: 167567 -> 38789 bytes
      === 2019-08-22 11:19:42,110 [8-46] INFO RequestContext - URL: '/builtinds/sc/modules/ISC_DataBinding.js', 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 11:19:42,222 [8-49] INFO Compression - /builtinds/sc/modules/ISC_Forms.js: 1014555 -> 245956 bytes
      === 2019-08-22 11:19:42,313 [8-47] INFO Compression - /builtinds/sc/modules/ISC_Grids.js: 1100982 -> 280394 bytes
      === 2019-08-22 11:19:42,394 [8-51] INFO Compression - /builtinds/sc/modules/ISC_RichTextEditor.js: 63767 -> 16528 bytes
      === 2019-08-22 11:19:42,427 [8-52] INFO Compression - /builtinds/sc/modules/ISC_Calendar.js: 287700 -> 69601 bytes
      === 2019-08-22 11:19:42,432 [8-54] INFO Compression - /builtinds/sc/modules/ISC_Core.js: 1278448 -> 334110 bytes
      === 2019-08-22 11:19:42,510 [8-50] INFO RequestContext - URL: '/builtinds/sc/skins/Enterprise/load_skin.js', 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 11:19:42,539 [8-50] 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 11:19:42,540 [8-46] INFO Compression - /builtinds/sc/modules/ISC_DataBinding.js: 1002765 -> 240559 bytes
      === 2019-08-22 11:19:42,545 [8-50] INFO Compression - /builtinds/sc/skins/Enterprise/load_skin.js: 78378 -> 12748 bytes
      === 2019-08-22 11:19:42,865 [8-49] 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 11:19:42,907 [8-49] 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 11:19:42,911 [8-49] INFO Compression - /builtinds/sc/skins/Enterprise/skin_styles.css: 392870 -> 33493 bytes
      === 2019-08-22 11:19:42,961 [8-47] 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
      GET /recompile/builtinds
      Job com.smartgwt.sample.BuiltInDS_1_1
      starting job: com.smartgwt.sample.BuiltInDS_1_1
      binding: user.agent=safari
      skipped compile because no input files have changed
      0,057s total -- Compile completed
      GET /sourcemaps/builtinds/C34ED5C0E17CBFADC09B2C3736EAAE1E_sourcemap.json
      sent source map for module 'builtinds' in 10 ms



      I see it logges:
      Creating loadScriptTagFiles.js to manually load the following script tags
      ...

      Should I have to change the loadScriptTagFiles.js? Or should the compiler do that?

      Last edited by timewriter; 22 Aug 2019, 01:40.

      Comment


        #4
        You should review the SmartGWT Development Mode Troubleshooting help topic. Your issue is most likely the result of the loadScriptTagFiles.js file not getting updated to account for the new skin. Of particular relevance here is the section, "Script Tags in Super Dev Mode," and the subsection of that titled, "Troubleshooting Script Tag Loading in SDM."

        The main relevant points from the help topic are:
        • You need to run your project in "Legacy Development" mode once to ensure loadScriptTagFiles.js is updated after making a change to what scripts are used. Doing this also installs/refreshes SC resources such as the JS Framework files. This is needed because the new GWT development mode in Eclipse (SDM) runs our custom linker in a sandbox where it can't actually modify the filesystem.
        • Ultimately, you should probably plan on moving away from script tags in your modules. GWT stopped supporting this long ago so in some future release SmartGWT will probably also drop support due to the unexpected issues like the one that you're facing now.

        If this doesn't solve the problem, can you attempt to reproduce it using the standard BuiltInDS sample project, or modify it so it reproduces? In the future, please also let us know what version of GWT you're using.

        Comment


          #5
          In the SmartGWT devmode guide stands:
          ----
          To avoid script tags if you're inheriting the standard module com.smartgwtee.SmartGwtEE, you'll need to switch that to com.smartgwtee.SmartGwtEENoScript, and add the following lines to your bootstrap HTML file (under the "war" directory):


          <script src="[app]/sc/modules/ISC_Core.js"> </script>
          <script src="[app]/sc/modules/ISC_Foundation.js"> </script>
          <script src="[app]/sc/modules/ISC_Containers.js"> </script>
          <script src="[app]/sc/modules/ISC_Grids.js"> </script>
          <script src="[app]/sc/modules/ISC_Forms.js"> </script>
          <script src="[app]/sc/modules/ISC_RichTextEditor.js"></script>
          <script src="[app]/sc/modules/ISC_Calendar.js"> </script>
          <script src="[app]/sc/modules/ISC_DataBinding.js"> </script>

          <script src="[app]/sc/skins/[skinname]/load_skin.js"></script>
          ----


          My app is based on the builtinds example, because it was recommended in the documentation

          1. I have searched for com.smartgwtee.SmartGwtE in the BuiltInDs.gwt.xml, but could not find it. Should it be there?

          2. I have added this inherited: <inherits name="com.smartgwtee.SmartGwtEENoScript"/>

          3. I have added the js script in BuiltInDs.html:

          <script src="builtinds/sc/modules/ISC_Core.js"> </script>
          <script src="builtinds/sc/modules/ISC_Foundation.js"> </script>
          <script src="builtinds/sc/modules/ISC_Containers.js"> </script>
          <script src="builtinds/sc/modules/ISC_Grids.js"> </script>
          <script src="builtinds/sc/modules/ISC_Forms.js"> </script>
          <script src="builtinds/sc/modules/ISC_RichTextEditor.js"></script>
          <script src="builtinds/sc/modules/ISC_Calendar.js"> </script>
          <script src="builtinds/sc/modules/ISC_DataBinding.js"> </script>

          <script src="builtinds/sc/skins/Stratus/load_skin.js"></script>


          4. I also removed: <script type="text/javascript" language="javascript" src="builtinds/loadScriptTagFiles.js"> And delete loadScriptTagFiles.js from the war folder.
          This was not mentioned, but I think it will not be used anymore. Is it correct?


          5. But the log still logs:
          ---
          === 2019-08-23 09:06:26,847 [main] INFO ISCInit - Auto-detected webRoot - using: D:\Projects\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/Stratus/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/Stratus/load_skin.js

          Can I disable this?
          ----

          Switching theme is working now.

          Please, clarify steps 1, 4 and 5. Thanks!
          Last edited by timewriter; 22 Aug 2019, 23:27.

          Comment


            #6
            The suggestion was to migrate away from script tags as a long term solution, but we weren't implying that you must do so now at this very moment in order to fix the skin of your app.

            Did you attempt to run your project (from yesterday, before the most recent changes) in "Legacy Development" mode in Eclipse? That should pick up the correct skin from your GWT project file. Let's get that working before worrying about migrating the project away from script tags.

            Comment


              #7
              I now use the GWT Eclipse plugin and runs it using right click on the project:
              Run As -> GWT Development Mode with Jetty
              This works, but loadScriptTagFiles.js is not recreated.


              I have tried:
              Run As -> GWT Legacy Development Mode with Jetty

              This gives an error in Chrome:
              Sorry, the GWT Developer Plugin no longer works with Chrome

              Also Firefox gives an error:
              Sorry, the GWT Developer Plugin only supports Firefox 3.0 - 26.0




              Not related to this issue.. But I'm not getting email messages when a reply is post on (this) topic(s) while I'm subscribed. What can I do about this?
              Last edited by timewriter; 26 Aug 2019, 00:50.

              Comment


                #8
                As mentioned in that help topic, it isn't necessary to actually load the app in a browser while in GWT Legacy Development Mode, since as you point out, modern browsers don't support the plugin. You just need to run the Eclipse project in GWT Legacy Development mode.

                That will regenerate the loadScriptTagFiles.js and SC resources. Once you see that run successfully, then stop the project, switch back to standard dev mode (SDM), and rerun the project. The correct skin should then be picked up.

                Comment


                  #9
                  Please add this last information to the SmartGWT_Quick_Start_Guide. I spent 2 days trying to figure out what I am doing wrong that the theme never changes... and it was from that GWT Legacy Development Mode.

                  Comment

                  Working...
                  X