之前未定义值ie6

时间:2014-12-05 12:05:57

标签: gwt gxt

将错误视为:

Loading inherited module 'com.sencha.gxt.ui.GXT'
Loading inherited module  com.sencha.gxt.data.Data'
Loading inherited module 'com.sencha.gxt.core.Core'
[ERROR] The value ie6 was not previously defined.

为了解决这个问题,我在我的gwt.xml中添加了extend-property name="user.agent" value="ie6"。但这是错误。

[ERROR] Element 'extend-property' beginning on line 13 contains unexpected attribute 'value'
[ERROR] Failure while parsing XML

2 个答案:

答案 0 :(得分:3)

您使用较旧版本的GXT与较新版本(2.6.x或2.7)的GWT。

如果您使用的是GWT 2.6.x,则可以启用ie6排列。看看这里:

GWT 2.6.0 how to enable Internet Explorer 6/7 permutation

如果您使用的是GWT 2.7,则需要GXT 2.3.1a / 3.1.2。

答案 1 :(得分:0)

我在项目中面临同样的问题。这个问题是因为GXT jar文件的版本。如果您是GWT-2.6或更高版本,则应仅使用GXT-3.1.x版本jar文件。否则你会得到同样的错误。

GXT-3.0.1.jar文件最多支持GWT-2.5.x版本。