DWR 1.x 升级 到3 错误

8 篇文章 0 订阅
最近需要从1.X 升级到3,很多页面失效,查找错误原因是DWRUtils找不到,查找DWR官方升级文档后发现是 DWREngine DWRUtil 变更造成,修改后正常。

Upgrading from DWR version 2.0 to DWR version 3.0

DWR 3.0 has not been officially released yet. This pages tracks the changes that we see as being required when the final release comes.

If you are upgrading from a version prior to 2.0, see the full upgrade notes.

These are the changes that you must make to upgrade from version 2.0 to version 3.0:

For DWR 1.x the Javascript libraries had the prefixes DWREngine and DWRUtil. These were deprecated in version 2.0 in favor of dwr.engine and dwr.util. In version 3.0, the prefixes DWREngine and DWRUtil have been removed. The best way to upgrade is to change all code to use the new method. Alternatively you can use the two-liner: [size=large][b]DWREngine = dwr.engine; DWRUtil = dwr.util[/b][/size][/size]; to re-enable the old behavior.
DWR 3.0 RC2 requires that engine.js is included before the DWR interface JavaScript files.
DWR 3.0 RC2 - If you are using Jetty 6 with reverse AJAX you will need to either upgrade to Jetty 7+ or follow the directions here: http://www.butterdev.com/dwr/2010/01/dwr-3-x-and-jetty-continuations-on-jetty-6-x/. Due to changes in the Jetty Continuation API.
DOMConverters - If you are using a DOMConverter (DOM4JConverter.java, DOMConverter.java, JDOMConverter.java or XOMConverter.java) it will now return either an Element or a Document based on the type of data. Prior to 3.x a DOMConverter always returned a Document.
Spring Schema Change - Creator configuration is no longer allowed inside the dwr:configuration element. Please see this discussion on the mailing list for more information.

[url]http://directwebremoting.org/dwr/downloads/upgrading/dwr30.html[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值