【问题标题】:Cannot apply CSS through GWT WindowBuilder editor for a multiple modules/Entrypoint application无法通过 GWT WindowBuilder 编辑器为多个模块/入口点应用程序应用 CSS
【发布时间】:2012-01-12 13:54:43
【问题描述】:

我通常使用 GWT WindowBuilder 编辑器来设计我的 GWT 应用程序 UI,但是我重构了我的应用程序以实现多个模块/入口点,如我的 other post 中所述

现在我收到此错误“没有从模块 HTML 引用的 CSS 文件。”当我从 WindowBuilder 编辑器的属性编辑器中单击 CSS 按钮时。

有什么办法可以解决这个错误。

【问题讨论】:

    标签: gwt


    【解决方案1】:

    如果您的 Web 应用程序文件位于 war 文件夹中。创建一个子目录 war/css 并将您的 css 文件放在那里。然后转到 your-module.xml 配置文件并将此文件夹声明为 public:

    <public path="css" />
    

    现在重新加载 Windows Builder 设计视图,Windows Builder 将自动映射您的 css 文件。

    【讨论】:

      【解决方案2】:

      解决方法很简单,

      我创建了一个这样的包:

      com.mycompany.css

      并将 CSS 放在那里,它就可以工作了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-05-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多