`
wutao8818
  • 浏览: 621983 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

DWR 1.x 升级 到3 错误

dwr 
阅读更多
最近需要从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: DWREngine = dwr.engine; DWRUtil = dwr.util[/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.

http://directwebremoting.org/dwr/downloads/upgrading/dwr30.html
分享到:
评论

相关推荐

    dwr2.0.5.jar&dwr2.0.6.jar&dwr3.rc1.jar

    在这个场景中,我们关注的是DWR的三个不同版本的JAR文件:dwr2.0.5.jar、dwr2.0.6.jar以及dwr3.rc1.jar。 1. **DWR 2.0.x 版本**: DWR 2.0.x 是DWR的一个较早版本系列,其中2.0.5和2.0.6是两个连续的小版本更新。...

    dwr1、2、3版本的jar

    - DWR 1.x是其早期版本,引入了基本的远程方法调用(RMI)概念到Web应用,使开发者能够轻松地创建动态交互的页面。 - 此版本可能包含了基本的AJAX支持,允许异步更新部分网页而无需整个页面刷新。 - 它可能提供了...

    Practical.DWR.2.Projects

    DWR 2 版本是在DWR 1.x的基础上进行升级和优化的版本,提供了更多的功能和性能改进,以更好地支持Web应用程序的开发。本书《Practical DWR 2 Projects》旨在通过实际项目来讲解如何有效地使用DWR 2 技术。 **一、...

    DWR2.0 中文手册

    DWR 2.0版本是在DWR 1.x基础上的升级,改进了性能和易用性,同时也增加了更多的特性。 DWR的核心功能是将Java对象暴露给JavaScript,使得在不刷新页面的情况下,前端可以调用后端的方法,更新页面数据。这种通信...

    Jetty中文手册

    Binding JAX-WS 2.x Endpoints to Jetty Contexts Java Management Extensions (JMX) 配置JMX教程 处理JVM NIO Bug Rewrite模块 Inversion of Control and Dependency Injection Frameworks Jetty XML IOC 如何使用...

Global site tag (gtag.js) - Google Analytics