Announcement

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

    css/js files not found after upgrade to 5.1

    1. SmartGWT 5.1-p20160224/LGPL
    2. Firefox 44, Chrome 48

    I downloaded the latest 5.1 and followed the steps in order to use it with maven. I previously used 4.1 power edition.

    I left iscTaglib definition within web.xml, all the other servlets (compression, IDA, Init are removed)
    Code:
        <jsp-config>
            <!-- Isomorphic JSP tags -->
            <taglib>
                <taglib-uri>isomorphic</taglib-uri>
                <taglib-location>/WEB-INF/iscTaglib.xml</taglib-location>
            </taglib>
        </jsp-config>
    within body of my html i have:
    Code:
    script src="app/sc/modules/ISC_Core.js"></script>
    script src="app/sc/modules/ISC_Foundation.js"></script>
    script src="app/sc/modules/ISC_Containers.js"></script>
    script src="app/sc/modules/ISC_Grids.js"></script>
    script src="app/sc/modules/ISC_Forms.js"></script>
    script src="app/sc/modules/ISC_RichTextEditor.js"></script>
    script src="app/sc/modules/ISC_Calendar.js"></script>
    script src="app/sc/modules/ISC_DataBinding.js"></script>
    script src="app/sc/modules/ISC_Drawing.js"></script>
    script src="app/sc/modules/ISC_Charts.js"></script>
    
    script src="app/sc/skins/Enterprise/load_skin.js"></script>
    
    script type="text/javascript" src="./OpenLayers/OpenLayers.js"></script>
    script type="text/javascript" src="./OpenStreetMap.js"></script>
    and within head i have
    Code:
    link type="text/css" rel="stylesheet" href="./app.css">
    in my module definition I only inherit from
    Code:
        <inherits name='com.smartgwt.tools.SmartGwtTools'/>
        <inherits name='com.smartgwt.SmartGwtNoScriptNoTheme'/>
        <inherits name='com.smartgwt.Tools'/>
        <inherits name='com.smartgwt.Drawing'/>
        <inherits name='com.smartclient.theme.enterprise.Enterprise'/>
    As when using 4.1power the structure (within netbeans) is
    Code:
    - WebPages
    -- app.html
    -- app.css
    -- OpenStreetMap.js
    -- OpenLayers
    --- OpenLayers js and css files etc
    -- WEB-INF
    --- web.xml
    It seems that my own css file I'm linking to, and also my OSM js files are not to be found. Any idea why?

    #2
    This looks like a question for a Netbeans forum. SmartGWT is not involved in your app's CSS and .js files are moved into your project.

    Comment


      #3
      I needed to include
      Code:
      <copyWebapp>true</copyWebapp>
      within my pom for the gwt-maven plug-in

      thanks for your time

      Comment


        #4
        Thanks for posting that, it might help someone who just happens to land on this thread from a Google search.

        Comment

        Working...
        X