Announcement

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

    skin_styles.css path wrong--not picking up styles

    I'm working with SmartGwt 1.2 and GWT 1.7 on NetBeans.

    I have read the threads here and accounted for the version changes (to SmartGWT, GWT, and the GWT4NB plugin) since the last time I set up a SmartGWT project on NetBeans.

    I have the "isomorphicDir = module/sc/" line in my html and I have renamed my module, quite creatively, to "module".

    The stylesheet isn't being read. Using firebug I see the following:

    Code:
    <script src="module/module.nocache.js" language="javascript" type="text/javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/initsc.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_Core.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_Foundation.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_Containers.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_Grids.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_Forms.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_RichTextEditor.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_Calendar.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/modules/ISC_DataBinding.js" language="javascript"></script>
    <script src="http://localhost:8080/TestSmartGWT/module/sc/skins/Enterprise/load_skin.js" language="javascript"></script>
    <link href="http://localhost:8080/TestSmartGWT/sc/skins/Enterprise/skin_styles.css" type="text/css" rel="stylesheet">
    Note that all of the lines that are looking for .js files have the right URL but the last line that looks for the skin_styles.css is leaving out the module name in the URL. Using firebug I can edit that path to the correct path and the formatting is instantly correct.

    Any ideas?

    #2
    <crickets chirping>

    Anyone? Am I SOL?

    Comment


      #3
      You haven't posted the portion where you're setting isomorphicDir. Post the actual code. You need to set that before you load the smartclient resources.

      Please be patient with getting a response and as a rule of thumb do not bump a thread without giving it 3 - 5 days. If you need expedited support, consider a support plan.

      Comment


        #4
        Here is the body of my .html page:
        Code:
            <body>
                <script type="text/javascript" language="javascript" src="module/module.nocache.js"></script>
                <script type="text/javascript"> var isomorphicDir = "module/sc/"; </script>
            </body>

        Comment


          #5
          Try
          Code:
                  <script type="text/javascript"> var isomorphicDir = "module/sc/"; </script>
                <script type="text/javascript" language="javascript" src="module/module.nocache.js"></script>

          Comment


            #6
            Your hint helped. I switched the order of the two lines in the .html file and it worked like a charm. Thanks!

            Code:
                <body>
                    <script type="text/javascript"> var isomorphicDir = "module/sc/"; </script>
                    <script type="text/javascript" language="javascript" src="module/module.nocache.js"></script>
                </body>

            Comment

            Working...
            X