Announcement

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

    Adding HTMLFlow to component causes loading of additional widgets to crash.

    Recently I have had to migrate versions of GWT and SmartGWT, I have upgraded both to the latest available for my web application. My Web Application uses multiple HTMLFlow's for component navigation and is necessary for the application to operate. Most all other SmartGWT components I have added to my application work with no issues, only HTMLFlow. Here is my environment setup and versioning (I can update with the full SmartGWT version)

    Firefox 31.3.0
    Eclipse Luna Service Release 2 (4.4.2)
    Google Suite Plugin 3.8.0
    smartgwt 4.1
    GWT 2.7

    I have also noticed that none of the SC.methods the only way I can get any log output is by using the GWT.log methods and printing out to the firefox developer console. Here is the error I receive.

    "Uncaught exception escaped"
    "com.google.gwt.core.client.JavaScriptException: (TypeError) : $wnd.isc[scClassName_0_g$] is undefined
    at create_144_g$
    at getOrCreateJsObj_0_g$
    at addChild_1_g$
    at initUserLayout_1_g$
    at onSuccess_7_g$
    at onSuccess_6_g$
    at onResponseReceived_0_g$
    at fireOnResponseReceived_0_g$
    at onReadyStateChange_0_g$
    at onreadystatechange<
    at apply_0_g$
    at entry0_0g$
    at entry_1_g$/<
    at anonymous

    Here is my gwt.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE module PUBLIC "-//GoogleInc.//DTD Google Web Toolkit 2.6.0//EN"
    "http://google-web-toolkit.googlecode.com/svn/tags/2.6.0/distro-source/core/src/gwt-module.dtd">
    <module rename-to='cw'>
    <inherits name='com.google.gwt.user.User' />
    <inherits name='com.google.gwt.user.Core' />
    <inherits name='com.smartgwt.SmartGwtNoScript' />
    <inherits name='com.smartgwt.DrawingNoScript' />

    <entry-point class='com.sw.cw.client.cwprod' />

    <source path='client' />
    <source path='shared' />

    <add-linker name="xsiframe" />
    <set-property name="compiler.emulatedStack" value="true" />
    <set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" />
    <set-configuration-property name="xsiframe.failIfScriptTag' value='FALSE' />
    <set-configuration-property name="devModeRedirectEnabled" value="TRUE" />

    </module>

    My cw.html
    <!DOCTYPE html>

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF8">
    <script> var isomorphicDir = "cw/sc/";</script>
    <script src=cw/sc/initsc.js></script>
    <script src=cw/sc/modules/ISC_Core.js></script>
    <script src=cw/sc/skins/Enterprise/load_skin.js></script>

    <script src=cw/sc/modules/ISC_Calendar.js></script>
    <script src=cw/sc/modules/ISC_Containers.js></script>
    <script src=cw/sc/modules/ISC_Drawing.js></script>
    <script src=cw/sc/modules/ISC_Forms.js></script>
    <script src=cw/sc/modules/ISC_Grids.js></script>
    <script src=cw/sc/modules/ISC_History.js></script>
    <script src=cw/sc/modules/ISC_PluginBridges.js></script>
    <script src=cw/sc/modules/ISC_Workflow.js></script>
    <script src=cw/sc/modules/ISC_Scheduler.js></script>

    <link type="text/css" rel="stylesheet" href="cw.css">

    <script type="text/javascript" language="javascript" src="cw/cw.nocache.js"></script>
    </head>
    <body>
    <iframe src="javascript:''" id="__get_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>

    <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: san-serif">
    Your web browser must have Javascript enabled
    in order for this application to display correctly.
    </div>
    </noscript>
    </body>
    </html>

    Here is my entry point.

    package com.sw.cw.client

    import com.google.gwt.core.client.EntryPoint
    import com.google.gwt.core.client.GWT;
    import com.smartgwt.client.types.Alignment;
    import com.smartgwt.client.widgets.HTMLFlow;
    import com.smartgwt.client.widgets.Img;
    import com.smartgwt.client.widgets.HLayout;
    import com.smartgwt.client.widgets.VLayout;

    public class Cwprod implements EntryPoint {

    private final VLayout mainVerticalLayout = new VLayout();
    private final HLayout userLayout = new HLayout();
    private final HLayout headerLayout = new HLayout();
    public HTMLFlow htmlFlow = new HTMLFlow("User Name");


    public void onModuleLoad() {
    mainVerticalLayout.setHeight100();
    mainVerticalLayout.setWidth100();

    headerLayout.setAlign(Alignment.CENTER);

    Img imgHeader = new Img("cwbanner.png", 500, 75);
    imgHeader.setLayoutAlign(Alignment.CENTER);

    headerLayout.addMember(imgHeader);

    mainVerticalLayout.addMember(headerLayout);
    mainVerticalLayout,addMember(userDNLayout);

    htmlFlow.setStyleName("userName");
    htmlFlow.setBackgroundColor("black");

    userLayout.addMember(htmlFlow);

    mainVerticalLayout.draw();
    }

    }

    #2
    You never updated with your full version. Note that this information is required; without it, generally our only advice is going to be to try the latest patched version.

    But in this case you do have some other basic errors: your order of loading ISC_*.js modules is totally wrong; refer to the docs to get the correct order.

    Comment

    Working...
    X