【问题标题】:What does SmartClient have to do with SmartGwt?SmartClient 与 SmartGwt 有什么关系?
【发布时间】:2014-02-24 21:21:09
【问题描述】:

我正在尝试运行一个简单的 SmartGWT 应用程序(我在 Eclipse 中安装了 GWT 工具包和 SDK)。我已经尝试过像这个这样的简单教程......

http://hilloldebnath.byethost3.com/2009/08/29/smartgwt-a-getting-started-guide/

当我运行为(Web 应用程序)并获得一个链接时,我双击该链接。唯一要显示的是 html 中的文本(没有显示 SmartGwt 组件)。我不断看到 SmartClient 的参考资料(在文档中),但我不确定它的作用。我需要 SmartClient 来使用 SmartGwt 组件进行开发还是发生了其他事情?

我还将提供控制台输出。控制台中也有一些错误,我不太确定它们是什么意思......

 [WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/dev/tools/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar' to the web app classpath for this session
   For additional info see: file:/C:/dev/tools/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
Linking modules
   Bootstrap link for command-line module 'com.test.smartgwt.TestSmartGwt'
      Linking module 'testsmartgwt'
         Invoking Linker Cross-Site-Iframe
            [ERROR] The Cross-Site-Iframe linker does not support <script> tags in the gwt.xml files, but the gwt.xml file (or the gwt.xml files which it includes) contains the following script tags: 
sc/modules/ISC_Core.js
sc/modules/ISC_Foundation.js
sc/modules/ISC_Containers.js
sc/modules/ISC_Grids.js
sc/modules/ISC_Forms.js
sc/modules/ISC_RichTextEditor.js
sc/modules/ISC_Calendar.js
sc/modules/ISC_DataBinding.js
sc/skins/Enterprise/load_skin.js
In order for your application to run correctly, you will need to include these tags in your host page directly. In order to avoid this error, you will need to remove the script tags from the gwt.xml file, or add this property to the gwt.xml file: <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
[ERROR] shell failed in doSlowStartup method
[WARN] 404 - GET /testsmartgwt/testsmartgwt.nocache.js () 1401 bytes
   Request headers
      Host: 
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
      Accept: */*
      Accept-Language: en-US,en;q=0.5
      Accept-Encoding: gzip, deflate
      Referer: http://******8888/TestSmartGwt.html?gwt.codesvr=******9997
      Connection: keep-alive
   Response headers
      Content-Type: text/html;charset=ISO-8859-1
      Cache-Control: must-revalidate,no-cache,no-store
      Content-Length: 1401
[WARN] 404 - GET /testsmartgwt/testsmartgwt.nocache.js (****) 1401 bytes
   Request headers
      Host: localhost
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
      Accept: */*
      Accept-Language: en-US,en;q=0.5
      Accept-Encoding: gzip, deflate
      Referer: http://******8888/TestSmartGwt.html?gwt.codesvr=******:9997
      Connection: keep-alive
   Response headers
      Content-Type: text/html;charset=ISO-8859-1
      Cache-Control: must-revalidate,no-cache,no-store
      Content-Length: 1401

【问题讨论】:

  • 你应该在 forums.smartclient.com 上问这个

标签: smartgwt smartclient


【解决方案1】:

在对 .gwt.xml 文件发表评论后,它对我有用

<!--<add-linker name="xsiframe"/>-->

我正在使用 gwt 2.6 和 smartgwt 4

【讨论】:

    【解决方案2】:

    删除后重试

    <script> var isomorphicDir = "testsmartgwt/sc/"; </script>
    

    来自您的主机 HTML 文件。


    如果还有问题,请告诉我SMARTGWT和GWT的版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-10
      • 1970-01-01
      • 2019-09-14
      • 2011-08-19
      • 2011-11-17
      • 2014-07-27
      • 2016-04-29
      • 2021-11-08
      相关资源
      最近更新 更多