我正在使用 Eclipse Juno Service Release 1,安装了最新的 GWT Designer 插件并运行更新。当我在 GWT Design 中并在小部件属性的 StyleName 行中选择 CSS 按钮时,我收到消息“没有从模块或 HTML 引用的 CSS 文件”。
我的 gwt.xml 是:
<module>
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.google.gwt.user.theme.standard.Standard"/>
<entry-point class="org.AwardTracker.client.AwardTracker"/>
<stylesheet src="org.AwardTracker.AwardTracker.css"/>
<!-- servelet context - path is arbitrary, but must match up with the rpc init inside java class -->
<!-- Tomcat will listen for this from the server and waits for rpc request in this context -->
<servlet class="org.AwardTracker.server.MySQLConnection" path="/MySQLConnection" />
<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"/>
</module>
我的 CSS 在 org.AwardTracker 中(在 gwt.xml 文件的正上方)。
我搜索过的所有提示都是更新 GWT Designer。这些提示都是几年前的,我有最新版本。
知道我做错了什么吗?
最佳答案
你必须首先检查 war 文件夹中的 css 文件 bcoz css 文件和 html 文件存在于 war 文件夹中,而不是检查 html 文件中的链接
<link type="text/css" rel="stylesheet" href="abc.css">
关于java - eclipse GWT "There are no CSS files referenced",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14678915/