Announcement

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

    I could't see my program in browser.

    Hello

    I made sample page but I could not see it in web browser.
    Just i can see white page ^^;

    I need to help.

    Thank you very much.

    It is my source
    --
    package com.mintapp.crm.client;
    import com.smartgwt.client.core.KeyIdentifier;

    import com.smartgwt.client.types.*;
    import com.smartgwt.client.util.*;
    import com.smartgwt.client.widgets.*;
    import com.smartgwt.client.widgets.events.*;
    import com.smartgwt.client.widgets.grid.*;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.core.client.GWT;

    public class ColumnOrderSample implements EntryPoint {


    public void onModuleLoad() {

    Canvas canvas = new Canvas();
    canvas.setWidth100();
    canvas.setHeight100();

    final ListGrid countryGrid = new ListGrid();
    countryGrid.setWidth(500);
    countryGrid.setHeight(224);
    countryGrid.setShowAllRecords(true);

    ListGridField countryCodeField = new ListGridField("countryCode", "Flag", 40);
    countryCodeField.setAlign(Alignment.CENTER);
    countryCodeField.setType(ListGridFieldType.IMAGE);
    countryCodeField.setImageURLPrefix("flags/16/");
    countryCodeField.setImageURLSuffix(".png");

    ListGridField nameField = new ListGridField("countryName", "Country");
    ListGridField capitalField = new ListGridField("capital", "Capital");
    ListGridField continentField = new ListGridField("continent", "Continent");
    countryGrid.setFields(countryCodeField, nameField, capitalField, continentField);
    countryGrid.setCanResizeFields(true);
    countryGrid.setData(CountryData.getRecords());
    canvas.addChild(countryGrid);

    IButton hideCapital = new IButton("Hide Capitals");
    hideCapital.setLeft(0);
    hideCapital.setTop(240);
    hideCapital.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
    countryGrid.hideField("capital");
    }
    });
    canvas.addChild(hideCapital);

    IButton showCapitals = new IButton("Show Capitals");
    showCapitals.setLeft(130);
    showCapitals.setTop(240);
    showCapitals.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
    countryGrid.showField("capital");
    }
    });
    canvas.addChild(showCapitals);

    canvas.draw();

    if (!GWT.isScript()) {
    KeyIdentifier debugKey = new KeyIdentifier();
    debugKey.setCtrlKey(true);
    debugKey.setKeyName("D");
    Page.registerKey(debugKey, new KeyCallback() {
    public void execute(String keyName) {
    SC.showConsole();
    }
    });
    }
    }

    }



    }

    -- index.html
    <html>
    <head>
    <title>Hello World</title>
    <!-- IMPORTANT : You must set the variable isomorphicDir to [MODULE_NAME]/sc/ so that the Smart GWT resource are correctly resolved -->
    <script type="text/javascript">
    var isomorphicDir = "sus316/sc/";
    </script>
    <!--include the SC Core API-->
    <script type="text/javascript" src='sus316/sc/modules/ISC_Core.js?isc_version=13.0p_2023-08-22.js'></script>
    </head>
    <body>
    <script language = "javascript" src = "sus316/sus316.nocache.js">
    </html>


    -- complied log
    Buildfile: D:\CRM\PRJ\SUS316\build.xml

    libs:

    javac:

    [javac] D:\CRM\PRJ\SUS316\build.xml:48: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

    [javac] Compiling 1 source file to D:\CRM\PRJ\SUS316\war\WEB-INF\classes

    [javac] Note: D:\CRM\PRJ\SUS316\src\com\mintapp\crm\client\ColumnOrderSample.java uses or overrides a deprecated API.

    [javac] Note: Recompile with -Xlint:deprecation for details.

    gwtc:

    [java] Compiling module com.mintapp.crm.CRM

    [java] Compiling 2 permutations

    [java] Compiling permutation 0...

    [java] Process output

    [java] Compiling

    [java] Compiling permutation 1...

    [java] Compile of permutations succeeded

    [java] Compilation succeeded -- 25.798s

    [java] Linking into D:\CRM\PRJ\SUS316\war\sus316

    [java] Invoking Linker Cross-Site-Iframe

    [java] Ignoring the following script tags in the gwt.xml file

    [java] sc/modules/ISC_Drawing.js?isc_version=13.0p_2023-08-22.js

    [java] sc/modules/ISC_Charts.js?isc_version=13.0p_2023-08-22.js

    [java] sc/system/development/ISC_SyntaxHiliter.js?isc_version=13.0p_2023-08-22.js

    [java] Invoking Linker SmartGwtScriptInjector

    [java] Creating loadScriptTagFiles.js to manually load the following script tags:

    [java] sc/modules/ISC_Drawing.js?isc_version=13.0p_2023-08-22.js

    [java] sc/modules/ISC_Charts.js?isc_version=13.0p_2023-08-22.js

    [java] sc/system/development/ISC_SyntaxHiliter.js?isc_version=13.0p_2023-08-22.js

    [java] Link succeeded

    [java] Linking succeeded -- 8.358s

    build:

    BUILD SUCCESSFUL

    Total time: 42 seconds




    SmartClient Version: v13.0p_2023-08-22/PowerEdition Deployment (built 2023-08-22)
    Browser : Chrome / 119.0.6045.161

    #2
    Please see the Debugging and SuperDevMode topics in the JavaDoc, and pay special attention to the Troubleshooting steps.

    If you still need help, tell us the rest that happened when you tried each Troubleshooting step.

    Comment


      #3
      Thank you so much for quickly response.

      I will read the Debugging and SuperDevMode topics in the JavaDoc.
      Have a good day.

      Comment

      Working...
      X