GWT 2.6 与 GXT-3.0.1 编译错误 [英] GWT 2.6 with GXT-3.0.1 error in compile

查看:23
本文介绍了GWT 2.6 与 GXT-3.0.1 编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从 GWT 的 2.6.0 版本放弃了对 ie6 浏览器的支持,我当前使用 GXT 的项目无法编译并出现以下错误:

since the 2.6.0 release of GWT which dropped support of ie6 browser my current project which also uses GXT is failing to compile with the following error:

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.
              [ERROR] Line 96: Unexpected exception while processing element 'set-property'

我试图设置<set-property name="gxt.user.agent" value="safari3, safari4, safari5, chrome, air, gecko1_8, gecko1_9"/><extend-属性名称="user.agent" ....../>但没有任何成功.是否有任何解决方法?

i tried to set <set-property name="gxt.user.agent" value="safari3, safari4, safari5, chrome, air, gecko1_8, gecko1_9"/> and the <extend-property name="user.agent" ....../> but without any success. Are there any workarounds on this?

推荐答案

GWT 2.6.0 对 GWT 2.4.0 和 2.5.1 有几处重大更改 - 这些更改不会影响所有库,但会影响 GXT 2和 3. GWT 2.6.0 中破坏 GXT 等库的代码更改包括:

GWT 2.6.0 has several breaking changes over GWT 2.4.0 and 2.5.1 - these don't affect all libraries, but they do affect both GXT 2 and 3. Code changes in GWT 2.6.0 that break libraries like GXT include:

  • 改变排列(ie6opera 已消失,ie10 已添加,注意较新版本的 opera 是基于 webkit 的,不需要他们自己的排列)
  • Element 添加了无法使用同名 XElement 方法编译的新最终方法 hasClassName 和 toggleClassName
  • 删除了字符串实用程序方法,切换到较新版本的 Guava(现在使用这些方法)
  • Changing permutations (ie6 and opera are gone, ie10 was added, note that newer versions of opera are webkit based and do not need their own permutation)
  • Element added new final methods hasClassName and toggleClassName that can't compiled with XElement methods of the same name
  • String utils methods removed, switched to newer version of Guava (which now uses those methods)

看到一个赞成票,所以我知道几个月后这仍然吸引了读者,因此编辑此内容以指出 GXT 3.1.0 位于 maven 中心并支持 GWT 2.6.0、2.6.1,无论如何,截至周五,支持 GWT 2.7.0-快照.我不能保证它是完全面向未来的,但只要 GWT 中的公共方法没有改变,它就不太可能在 GWT 2.7 系列中再次崩溃.

Saw an upvote, so I know this is still getting readers months later, so editing this to point out that GXT 3.1.0 is in maven central and supports GWT 2.6.0, 2.6.1, and as of Friday anyway, supports GWT 2.7.0-SNAPSHOT. I can't promise it is totally future-proof, but as long no public methods in GWT change, it isn't likely to break again in the GWT 2.7 series.

这篇关于GWT 2.6 与 GXT-3.0.1 编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆