[英]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.