[英]GWT compilation failed in eclipse
伙计们,我正在尝试使用gxt制作小型应用程序,但是它给了我GWT编译失败,然后[ERROR] Line 96: Value 'ie6' in not a valid value for property 'user.agent'
控制台中出现的[ERROR] Line 96: Value 'ie6' in not a valid value for property 'user.agent'
是我的代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD GWT 2.7.0//EN"
"http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module rename-to='gxt_project'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<!-- Other module inherits -->
<inherits name='com.sencha.gxt.ui.GXT' />
<set-property name="user.agent" value="safari" />
<!-- GXT stylesheet -->
<stylesheet src="reset.css" />
<!-- Specify the app entry point class. -->
<entry-point class='com.sencha.gxt.project.client.GXT_Project' />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />
</module>
和
public class GXT_Project implements EntryPoint {
@Override
public void onModuleLoad() {
TextButton textButton = new TextButton("Verify GXT Works");
RootPanel.get().add(textButton);
textButton.addSelectHandler(new SelectHandler() {
@Override
public void onSelect(SelectEvent event) {
MessageBox messageBox = new MessageBox("GXT Works.");
messageBox.show();
}
});
}
}
这也是项目跟踪项目跟踪
任何帮助将不胜感激..非常感谢
GWT 2.7.0不支持ie6 ,但GXT 3.0.1本身就使用了com/sencha/gxt/core/Core.gwt.xml
( com/sencha/gxt/core/Core.gwt.xml
等)。
您应该升级GXT版本或降级GWT版本。
另请参见: GXT 4.0指南| GWT和GXT版本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.