0

我在我的应用程序中使用 GWT 和 SmartGWT。我想将应用程序版本升级为 GWT 从2.6.1 到 2.8.2和 SmartGWT 从5.0 到 6.1。我已成功迁移它,但面临一些 UI 问题。

.gwt.xml 文件如下所示。

<module>
    <inherits name="com.smartgwt.SmartGwt" />
    <inherits name="com.smartclient.theme.enterprise.Enterprise" />
    <inherits name="com.smartgwt.PluginBridgesWidgets" />
    <inherits name="com.myproject.file.Model" />

    <script src="json2.js" />
    <script src="swfobject.js" />

    <stylesheet src="css/home.css" />
    <stylesheet src="css/smartgwt-overrides.css" />
</module>

早些时候,它作为 GWT/SmartGWT 依次加载样式表和 JS,然后是我的自定义样式表和 JS。但升级后它会先加载自定义 CSS 和 JS,然后再加载 GWT/SmartGWT。正因为如此,UI 像以前一样工作。

任何人都有任何想法,如何更改加载顺序?我也尝试过从 .gwt.xml 更改上述文件序列,但没有价值。

提前致谢!

4

1 回答 1

0

而不是“com.smartgwt.SmartGwt”你可以继承

com.smartgwt.SmartGwtNoTheme

甚至

com.smartgwt.SmartGwtNoScriptNoTheme

并以所需的顺序将所有必需的资源(js 和 css 文件)直接包含到您的 html 页面中。

于 2020-01-15T12:31:35.487 回答