Announcement

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

    SmartGWT 2.2 Graphite theme not works

    I've just changed maven's version of SmartGWT, rebuld my project and run it. As result I cant see any presence of theme. Rollback on previous version helps, but what is happened with new version?

    #2
    I had same problem with version 2.2 from http://www.smartclient.com/maven2. It cannot locate the sc/ dir on the public path, I havent tried setting isomorphicDir yet, but previous versions worked without it...

    Comment


      #3
      See this post. If it does not resolve your issue, use Firebug to examine the http traffic.

      Comment


        #4
        Yes, it helps, but without that hack when I look at javascript console I see error while trying to load image from "modulepackage/modulepackage/sc/.... and so on" Module package somehow duplicates. I think it's a bug.(version 2.1 has no this issue)

        Comment


          #5
          Yes, its a bug that only affects users not on GWT 2.x and inheriting the SmartGwt module. For now use the workaround or better yet upgrade to GWT 2.x.

          Comment


            #6
            Originally posted by smartgwt.dev
            Yes, its a bug that only affects users not on GWT 2.x and inheriting the SmartGwt module. For now use the workaround or better yet upgrade to GWT 2.x.
            I use GWT 2.0.3, did I miss some?

            Comment


              #7
              I also use GWT 2.0.3 and I'm having the same problems.

              Comment


                #8
                Originally posted by smartgwt.dev
                Yes, its a bug that only affects users not on GWT 2.x and inheriting the SmartGwt module. For now use the workaround or better yet upgrade to GWT 2.x.

                Same problem with Entreprise Theme, GWT 2.0.3

                Comment


                  #9
                  Post your module xml file and host html file contents. This works as seen with the Showcase so it must be related to your configuration.

                  Comment


                    #10
                    module's xml:
                    Code:
                    <?xml version="1.0" encoding="UTF-8"?>
                    <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0.0//EN"
                            "http://google-web-toolkit.googlecode.com/svn/tags/2.0.0/distro-source/core/src/gwt-module.dtd">
                    <module>
                        <!-- Inherit the core Web Toolkit stuff.                  -->
                        <inherits name='com.google.gwt.user.User'/>
                        <inherits name="com.smartgwt.SmartGwt"/>
                        <inherits name="com.google.gwt.i18n.I18N"/>
                        <inherits name="com.smartgwt.SmartGwtPluginBridges"/>
                        <inherits name="com.smartclient.theme.graphite.Graphite"/>
                        <inherits name="com.smartgwt.ofcchart.OFCChart4SGWT"/>
                    
                        <!-- Specify the app entry point class.                   -->
                        <entry-point class='pages.main.client.Main'/>
                    
                        <!-- Properties -->
                        <extend-property name="locale" values="en"/>
                        <extend-property name="locale" values="ru_RU"/>
                    
                        <!-- Specify the app servlets.                   -->
                        <servlet path='/pages.main.Main/MainService' class='pages.main.server.MainServiceImpl'/>
                    
                    </module>
                    host html

                    Code:
                    <html>
                    <head>
                        <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
                        <title id="title">Cells management</title>
                        <style type="text/css">
                            a {
                                font-size: 12px;
                            }
                    
                            .grayLink {
                                cursor: pointer;
                                color: gray;
                                text-decoration: underline;
                                font-size: 12px;
                            }
                        </style>
                    </head>
                    
                    <!--                                           -->
                    <!-- The body can have arbitrary html, or      -->
                    <!-- you can leave the body empty if you want  -->
                    <!-- to create a completely dynamic ui         -->
                    <!--                                           -->
                    <body>
                    <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe>
                    
                    
                    <!--                                            -->
                    <!-- This script is required bootstrap stuff.   -->
                    <!--                                            -->
                    <script type="text/javascript" language="javascript" src="pages.main.Main.nocache.js"></script>
                    
                    
                    </body>
                    </html>

                    Comment


                      #11
                      The com.smartgwt.SmartGwt module includes the Enterprise theme by default. Inherit the SmartGwtNoTheme module instead since you're explicitly inheriting com.smartclient.theme.graphite.Graphite.

                      Sanjiv

                      Comment


                        #12
                        Originally posted by sjivan
                        The com.smartgwt.SmartGwt module includes the Enterprise theme by default. Inherit the SmartGwtNoTheme module instead since you're explicitly inheriting com.smartclient.theme.graphite.Graphite.

                        Sanjiv
                        Code:
                        <inherits name='com.google.gwt.user.User'/>
                            <inherits name="com.smartgwt.SmartGwtNoTheme"/>
                            <inherits name="com.google.gwt.i18n.I18N"/>
                            <inherits name="com.smartgwt.SmartGwtPluginBridges"/>
                            <inherits name="com.smartclient.theme.graphite.Graphite"/>
                        Still no luck :(
                        http://localhost:8080/pages.main.Main/pages.main.Main/sc/skins/Graphite/images/ListGrid/header_menu.png
                        Failed to load resource: the server responded with a status of 404 (Not Found)

                        Somehow "pages.main.Main" duplicates :(

                        Comment


                          #13
                          Modify the helloworld-2.0 sample in the distribution to inherit SmartGwtNoTheme and com.smartclient.theme.graphite.Graphite. You'll see that it works fine.

                          Comment


                            #14
                            Originally posted by smartgwt.dev
                            Modify the helloworld-2.0 sample in the distribution to inherit SmartGwtNoTheme and com.smartclient.theme.graphite.Graphite. You'll see that it works fine.
                            I believe that showcase will work, but what's wrong with my application? Why is that issue not present in Smartgwt 2.1? Not only I have this problem.
                            Last edited by Metallic; 21 May 2010, 06:19.

                            Comment


                              #15
                              You configuration was invalid in the fist place. You cannot inherit SmartGwt and the Graphite modules since the SmartGwt module inherits the default Enterprise skin and there are bound to be conflicts.

                              Only you know the details of your environment. We have no idea what

                              Somehow "pages.main.Main" duplicates
                              means. So spend some time comparing your setup with the HelloWorld setup that was indicated in my previous post and figure out the problem.

                              Comment

                              Working...
                              X