Announcement

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

    upgrade to gwt 1.6.2 and smartgwt 1.0b2

    hi,

    I'm struggling with a conf issue: I've just upgraded to the versions mentioned, and I have adapted my settings:
    -I have a classical war file structure, with smartgwt.jar smartgwt-skins.jar located in WEB-INF/lib
    -in pkg.MyApp.gwt.xml:
    <module rename-to="myApp">
    <inherits name="com.smartgwt.SmartGwt"/>
    <inherits name="com.smartclient.theme.enterprise.Enterprise" />
    -in MyApp.html:
    <script type="text/javascript" language="javascript" src="myApp/myApp.nocache.js"></script>
    etc

    When I run the app in hosted mode, I have the following trace:
    200 - GET MyApp.html
    200 - GET myApp/myApp.nocache.js
    200 - GET myApp/sc/initsc.js
    [...other smart client stuffs...]
    200 - GET /myApp/sc/skins/Enterprise/load_skin.js
    404 - GET /sc/skins/Enterprise/skin_styles.css
    [...other 404 errors...]

    I wonder what I have to change in the conf to make that last path correct regarding my web app.

    Thanks for your help !

    #2
    This is due to the way the default paths have changed in GWT 1.6. I'll try to add support for this over the weekend. There's an issue in tracker for this so feel free to "star" it.

    Comment


      #3
      Originally posted by sjivan
      This is due to the way the default paths have changed in GWT 1.6. I'll try to add support for this over the weekend. There's an issue in tracker for this so feel free to "star" it.
      You're my saver !!!
      For the while, there is also a useful workaround proposed:
      <script>
      var isomorphicDir = "[MODULE_NAME]/sc/";
      </script>

      Thanks ;)

      Comment


        #4
        Still no success

        Hello ppoulard,

        I tried this workaround, but i am getting back the same warning

        20 May, 2009 4:22:41 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
        WARNING: No file found for: /sc/skins/Enterprise/skin_styles.css
        20 May, 2009 4:22:54 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
        WARNING: No file found for: /sc/skins/Enterprise/images/Splitbar/hsplit_snap.png
        20 May, 2009 4:22:54 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
        WARNING: No file found for: /sc/skins/Enterprise/images/blank.gif
        20 May, 2009 4:22:54 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
        WARNING: No file found for: /sc/skins/Enterprise/images/SectionHeader/opener_opened.png
        20 May, 2009 4:22:54 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
        WARNING: No file found for: /sc/skins/Enterprise/images/SectionHeader/header_opened_start.png
        20 May, 2009 4:22:54 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
        WARNING: No file found for: /sc/skins/Enterprise/images/SectionHeader/header_opened_stretch.png
        20 May, 2009 4:22:54 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
        WARNING: No file found for: /sc/skins/Enterprise/images/SectionHeader/header_opened_end.png


        My gwt.xml file is:
        Code:
        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6.4//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-source/core/src/gwt-module.dtd">
        <module rename-to = "track">
          
          <inherits name='com.google.gwt.user.User'/>
          <inherits name='com.google.gwt.user.theme.standard.Standard'/>
          <inherits name='com.smartgwt.SmartGwt'/>
          <!-- inherits name="com.smartclient.SmartClientDefault"/ -->
          <!-- inherits name="com.smartclient.theme.enterprise.Enterprise"/ -->
          
          <entry-point class='org.trackgenie.client.Track'/>
          
          <!-- script src="../public/js/ext/adapter/ext/ext-base.js"></script -->
          <!-- script src="../public/js/ext/ext-all.js"></script -->
        </module>
        and my html page is

        Code:
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        
        <html>
          <head>
            <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        
        
            <link type="text/css" rel="stylesheet" href="Track.css">
        
         
            <title>TrackGenie</title>
            
        
        
            <script>
            	var isomorphicDir="track/sc/";
            </script> 
            
            <script type="text/javascript" language="javascript" src="track/track.nocache.js"></script>
            <script type="text/javascript" src="../js/ext/adapter/yui/yui-utilities.js"></script>
            <script type="text/javascript" src="../js/ext/adapter/yui/ext-yui-adapter.js"></script>
            <script type="text/javascript" src="../js/ext/ext-all.js"></script>
           
          </head>
        
        
          <body>
        
            <!-- OPTIONAL: include this if you want history support -->
            <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
        
        
          </body>
        </html>
        It would be great if you could let me know what i am doing wrong.

        Thanks
        -- Mohit

        Comment


          #5
          in gwt.xml try to add:

          Code:
          <inherits name="com.smartclient.theme.enterprise.EnterpriseResources"/>

          Comment

          Working...
          X