【问题标题】:GWT starter project doesn't work when inherit smartGWT is added添加继承 smartGWT 时 GWT 启动项目不起作用
【发布时间】:2015-06-30 13:14:58
【问题描述】:

我是 GWT 的新手,正在尝试使用 SmartGWT。我得到了 GWT 设置并创建了一个新项目。新项目随附的启动项目工作正常,但是一旦我添加 smartGWT jar 并在我的 .gwt.xml 文件中继承 smartGWT 工具,模块就不会加载。

我的 .gwt.xml 文件现在看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>
<!--
  When updating your version of GWT, you should also update this DTD reference,
  so that your app can take advantage of the latest GWT module capabilities.
-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
  "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module rename-to='whydoyouhateme'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>

  <!-- Inherit the default GWT style sheet.  You can change       -->
  <!-- the theme of your GWT application by uncommenting          -->
  <!-- any one of the following lines.                            -->
  <inherits name='com.google.gwt.user.theme.clean.Clean'/>
  <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

  <!-- Other module inherits                                      -->
<inherits name= 'com.smartgwt.tools.SmartGwtTools' />
  <!-- Specify the app entry point class.                         -->
  <entry-point class='com.lmco.client.WhyDoYouHateMe'/>

  <!-- Specify the paths for translatable code                    -->
  <source path='client'/>
  <source path='shared'/>

  <!-- allow Super Dev Mode -->
  <add-linker name="xsiframe"/>
</module>

这正常吗?

【问题讨论】:

    标签: gwt smartgwt


    【解决方案1】:

    SmartGWT jar 的继承标签是这样的,试试这个

      <inherits name="com.smartgwt.SmartGwt"/>
    

    【讨论】:

    • 我在模块中添加了 smartgwt.jat 和 smartgwt-skins.jar 以及该行,但不起作用!
    猜你喜欢
    • 1970-01-01
    • 2019-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-15
    • 1970-01-01
    相关资源
    最近更新 更多