Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gwt Css和uibinder无混淆不工作_Css_Gwt_Obfuscation - Fatal编程技术网

Gwt Css和uibinder无混淆不工作

Gwt Css和uibinder无混淆不工作,css,gwt,obfuscation,Css,Gwt,Obfuscation,我有一个具有配置属性的Gwt小部件库: <set-configuration-property name="CssResource.style" value="stable-notype"/> 然后,生成一个css资源 interface WidgetStyle extends CssResource { String button(); String invader(); } 当我在WidgetStyle实例上调用ensureInjected和/或以编程方式/在ui:b

我有一个具有配置属性的Gwt小部件库:

<set-configuration-property name="CssResource.style" value="stable-notype"/>
然后,生成一个css资源

interface WidgetStyle extends CssResource {
  String button();
  String invader();
}
当我在WidgetStyle实例上调用ensureInjected和/或以编程方式/在ui:binder中使用样式时,例如

<ui:style src="WidgetStyle.css" field="style" />
<g:HTMLPanel styleName="{style.invader}" ui:field="panel" />
这些对使用不同的名称复制上面的样式。我看到第二对是MyWidget拥有的样式,但是我如何强制所有应用程序只使用我在.css文件中定义的css类而不进行任何混淆呢

此外,第二对css类不能正确应用。仅应用第一个,第二个不匹配


我做错了什么?

好的,我发现用

<ui:style ... />
注入样式和css类可能会得到额外的前缀,对我来说,正确的方法是使用

<ui:with ... >

在*.gwt.xml中的SuperDevMode中,“默认情况下”模糊覆盖不起作用,如果我是对的,它必须配置DevMode运行参数。

据我所知,这不能用gwt 2.7+的运行参数完成。java第510行中有一条信息说,在superdev中进行模糊处理是必要的。
<ui:style ... />
<ui:with ... >