Announcement

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

    Tip: GWT 1.6 and SmartGWT

    If you're using GWT 1.6, you'll need to add the following in your host html file :
    Code:
     <script> var isomorphicDir = "[MODULE_NAME]/sc/"; </script>

    #2
    Other GWT 1.6 Issues

    Hi,

    Is it viable to migrate to GWT1.6 now?

    My initial testing pointed to hosted mode performance that would make development very difficult. Not sure if related to this:

    http://code.google.com/p/google-web-...detail?id=1046

    Are there other issues we should watch out for?

    thanks

    Comment


      #3
      Originally posted by london
      Hi,

      Is it viable to migrate to GWT1.6 now?

      My initial testing pointed to hosted mode performance that would make development very difficult. Not sure if related to this:

      http://code.google.com/p/google-web-...detail?id=1046

      Are there other issues we should watch out for?

      thanks
      Just migrated - haven't noticed any problems or performance downgrades in hosted mode.

      Only thing I had to do: upgrade to latest java version because on java 1.6.0_07 (in Ubuntu 8.0.4 Hardy) it crashed. After upgrade to java 1.6.0_13 - everything works fine.

      Aleksandras

      Comment


        #4
        upgrated last week, and after all path configurations and I had no problems at all. (and I have a quite big application)

        Comment


          #5
          Gwt 1.6

          Hi,

          I am using GWT1.6 and
          Code:
          <script> var isomorphicDir = "module/sc/"; </script>
          is also added but when I start my app it is not able to find skin related files (js and images) it gives 404.

          thanks

          Comment


            #6
            the [MODULE_NAME] is where you place the name of the module as specified in your *.gwt.xml in the <module rename-to="[MODULE_NAME]">

            So as you placed the name "module" I make sure you defined your *.gwt.xml file like this:
            <module rename-to="module">

            and for the skin make sure you also have:
            Code:
            <script>var currentSkin = "Enterprise";</script>
            <script type="text/javascript">document.write("<"+"script src=module/sc/skins/" + currentSkin + "/load_skin.js?isc_version=7.0beta.js><"+"/script>");</script>

            Comment


              #7
              Thanks for help mihai007 , now it's working the only change I did was shifted isomorphicDir variable above

              Code:
              <script type="text/javascript" language="javascript" src="module/module.nocache.js"></script>

              Comment


                #8
                I want to report the following:

                Environment:
                Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
                smartgwt 1.0b2
                gwt 1.6.4

                Observation:
                noticed that [module name] needs to be in small-caps.

                Example:
                If [module name] is SmartGWTtest,
                var isomorphicDir = "SmartGWTtest/sc/";
                will results in 404 errors.

                But, if [module name] is smartgwttest,
                var isomorphicDir = "smartgwttest/sc/";
                everything is okay.

                Comment


                  #9
                  I'm using GWT 1.6 with SmartGWT and haven't noticed any issues, nor have I had to insert anything special into my HTML file to get things to function properly. Not sure what the difference is with the configurations of everyone else.

                  Comment


                    #10
                    Originally posted by timclymer
                    I'm using GWT 1.6 with SmartGWT and haven't noticed any issues, nor have I had to insert anything special into my HTML file to get things to function properly. Not sure what the difference is with the configurations of everyone else.
                    You are probably running in the GWT 1.6 in the 1.5 mode. When running the hosted mode with the GWT 1.5 class, you'll see a deprecated log message.

                    Comment


                      #11
                      Adding only isomorphicDir let with quite some 404 errors on various PNG files. I had to add a skin variable, and skinimg too, but I still have some.

                      Here is what I declared in the head section of my HTML main page :
                      Code:
                      <script>var isomorphicDir = "mymodule/sc/";</script>
                      <script>var skin          = "mymodule/sc/";</script>
                      <script>var skinimg       = "mymodule/sc/";</script>
                      And here is a list of remaining 404 :
                      Code:
                      [WARN] 404 - GET /mymodule/sc/ListGrid/header.png (127.0.0.1) 1420 bytes
                      [WARN] 404 - GET /mymodule/sc/images/ListGrid/header.png (127.0.0.1) 1427 bytes
                      Thank you for any further hint on what to do.

                      Comment


                        #12
                        As of today, using the last 1.0b3 snapshot fixed everything, thank you.

                        Comment


                          #13
                          I use 1.1 and there is still some 404 no file found ...

                          I use
                          Code:
                          <script>var isomorphicDir = "outgame/sc/";</script>
                          <script>var skin          = "outgame/sc/";</script>
                          <script>var skinimg       = "outgame/sc/";</script>
                          
                              <script type="text/javascript" language="javascript" src="outgame/outgame.nocache.js"></script>
                          but still get ... errors like this
                          Code:
                          05.06.2009 22:49:12 com.google.appengine.tools.development.LocalResourceFileServlet doGet
                          WARNING: No file found for: /sc/skins/Enterprise/images/blank.gif
                          05.06.2009 22:49:12 com.google.appengine.tools.development.LocalResourceFileServlet doGet
                          WARNING: No file found for: /sc/skins/Enterprise/images/button/button_start.png

                          Comment


                            #14
                            The SmartGWT 1.1 distribution comes with a Hello World sample for GWT 1.6. Use that as a starting point.

                            Sanjiv

                            Comment


                              #15
                              So I'm using GWT 1.6 and I'm having issues with code that worked fine on 1.5. I'm also using 1.1 version of Smartclient.

                              The below attached image is what a simple tree object looks like. It looks like the skin isn't being found or something such. This project was set up with the provided helloworld example as well. Is this is a CSS problem or something else?
                              Attached Files

                              Comment

                              Working...
                              X