Announcement

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

  • Dynamic Skin (Tahoe, EnterpriseBlue)

    what is the correct way of letting the user change dynamically the skin if using SmartGwtEENoScriptNoTheme ?

    My gwt.xml file:
    <inherits name="com.smartgwtee.SmartGwtEENoScriptNoTheme" />
    <inherits name="com.smartclient.theme.tahoe.Tahoe" />
    <inherits name="com.smartclient.theme.tahoe.TahoeResources" />
    <inherits name="com.smartgwt.RealtimeMessagingNoScript"/>

    My html bootstrap file:
    ...
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/initsc.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Core.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Foundation.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Containers.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Grids.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Forms.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_RichTextEditor.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_DataBinding.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/skins/Tahoe/load_skin.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Drawing.js"></script>
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/modules/ISC_Charts.js"></script>

    Here, I replaced the line:
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/skins/EnterpriseBlue/load_skin.js"></script>
    with
    <script type="text/javascript" language="javascript" src="${gwtDirectory}/sc/skins/Tahoe/load_skin.js"></script>

    For letting the user select the skin dynamically, as in the showcase, what is the correct way to do it (using NoScriptNoTheme)?

    Using smartgwt 6.1p power

  • #2
    Write out the script tag that loads the skin dynamically, either from a .jsp or with various client-side techniques. You can take a look at the source code for the Showcase if you want to see concrete details of our particular approach.

    Comment

    Working...
    X