Announcement

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

    #1 Core SmartClient JavaScript libraries appear not to be loaded in Eclipse

    Hi ,

    I am new to SmartGwt. I have created my first project in eclipse using smartgwt. But when i run the project with the below html code, I am not able to see any buttons.


    <!doctype html>
    <!-- The DOCTYPE declaration above will set the -->
    <!-- browser's rendering engine into -->
    <!-- "Standards Mode". Replacing this declaration -->
    <!-- with a "Quirks Mode" doctype is not supported. -->

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <!-- IMPORTANT : You must set the variable isomorphicDir to [MODULE_NAME]/sc/ so that the SmartGWT resource are
    correctly resolved -->

    <!-- -->
    <!-- Consider inlining CSS to reduce the number of requested files -->
    <!-- -->
    <link type="text/css" rel="stylesheet" href="MyProject.css">

    <!-- -->
    <!-- Any title is fine -->
    <!-- -->
    <title>Web Application Starter Project</title>

    <!-- -->
    <!-- This script loads your compiled module. -->
    <!-- If you add any GWT meta tags, they must -->
    <!-- be added before this line. -->
    <!-- -->
    <script> var isomorphicDir = "myProject/sc/"; </script>
    <script type="text/javascript" language="javascript" src="myproject/myproject.nocache.js"></script>
    </head>

    <!-- -->
    <!-- The body can have arbitrary html, or -->
    <!-- you can leave the body empty if you want -->
    <!-- to create a completely dynamic UI. -->
    <!-- -->
    <body>

    <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
    <noscript>
    <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
    Your web browser must have JavaScript enabled
    in order for this application to display correctly.
    </div>
    </noscript>

    <h1>Web Application Starter Project</h1>

    <table align="center">
    <tr>
    <td colspan="2" style="font-weight:bold;">Please enter your name:</td>
    </tr>
    <tr>
    <td id="nameFieldContainer"></td>
    <td id="sendButtonContainer"></td>
    </tr>
    <tr>
    <td colspan="2" style="color:red;" id="errorLabelContainer"></td>
    </tr>
    </table>
    <h2>Web Application Starter Project</h2>
    </body>
    </html>

    On the web page I receive a pop up message

    Core SmartClient JavaScript libraries appear not to be loaded.
    If inheriting the NoScript SmartGWT modules, verify that the HTML file includes <script src=...> tags to load the SmartClient module .js files from the appropriate location within the WAR.
    By default these files are present under [GWT app name]/sc/modules/.

    Please help me with this problem.

    #2
    See the Debugging overview for the different options for loading core JavaScript files, and how to troubleshoot them.

    Comment

    Working...
    X