Announcement

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

    IMPORTANT : minor update to SmartGwt modules

    I've done some reorganization of the SmartGwt modules to that by default the compile output does not include debug sources, unused resources, developer tools etc. People were getting the wrong impression that the size of the compiled output was the size of their application.

    Most users are probably using either com.smartgwt.SmartGwt or com.smartgwt.SmartGwtNoScript and will be unaffected by this refactoring. You will only notice that the compile output is a lot smaller as it does not include the debug / readable source js files, and the developer console files.

    The most important change to keep in mind is that in order to use the Developer Console (ie SC.showConsole() ), you will now need to inherit the following module

    Code:
    <inherits name="com.smartgwt.tools.SmartGwtTools"/>
    Users that happen be using com.smartgwt.SmartGwtDebug will need to inherit com.smartgwt.debug.SmartGwtDebug instead.

    Please try out the latest nightly and let me know if you have any issues / questions.

    Thanks,
    Sanjiv

    #2
    Originally posted by sjivan
    Users that happen be using com.smartgwt.SmartGwtDebug will need to inherit com.smartgwt.debug.SmartGwtDebug instead.
    Sanjiv
    After inheriting com.smartgwt.debug.SmartGwtDebug instead of com.smartgwt.SmartGwt application is working but displays no background, gifs etc (no skin?)

    Main.gwt.xml
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <module>
    	<inherits name="com.google.gwt.user.User"/>
    <!--    <inherits name="com.smartgwt.SmartGwt"/> -->
        <inherits name="com.smartgwt.debug.SmartGwtDebug"/>
    	<entry-point class="org.yournamehere.client.MainEntryPoint"/>
    	<!-- Do not define servlets here, use web.xml -->
    </module>
    welcomeGWT.html
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
        <head>
            <meta name='gwt:module' content='org.yournamehere.Main=org.yournamehere.Main'>
            <title>Main</title>
        </head>
        <body>
            <script language="javascript" src="org.yournamehere.Main.nocache.js"></script>
        </body>
    </html>
    MichalG

    Comment

    Working...
    X