java - eclipse GWT "There are no CSS files referenced"

标签 java css eclipse gwt

我正在使用 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/

相关文章:

jquery - 获取图像源路径并设置为 div 容器中的背景图像

java - ConcurrentSkipList设置并替换remove(key)

java - 搜索分散 3D 图的 Java 示例

java - 使用 POSTMAN 在 saiku 中点击查询 EXECUTE API 时出错

css - 如何在 svelte 中设置元素的类

html - Wordpress 博客循环,自动高度打破布局

java - 在java中已经启动的线程内调用代码

java - 需要有关 Maven 示例的帮助

eclipse - 如何防止 Eclipse CDT 解析配置的包含路径之外的文件?

java - 我可以将工厂类添加到自定义扩展点吗