由DWR1.0到DWR2.0常出现的问题
生活随笔
收集整理的這篇文章主要介紹了
由DWR1.0到DWR2.0常出现的问题
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
<script src="js/engine.js"></script>
<script src="js/util.js"></script>
<script src="dwr/interface/ItemsBean.js"></script> 由DWR1.0到DWR2.0常出現(xiàn)的問題
在1.0的時候是好使的 換成2.0的時候 就出現(xiàn) Missing method or missing parameter converters 這個錯誤了 2009-3-29 17:44:14 org.directwebremoting.util.CommonsLoggingOutput warn
警告: Marshalling exception: Missing method or missing parameter converters: 主要原因就是DWR2中更新了的內容,原文如下: The callback-as-first-parameter system has been deprecated since version 0.9 in favor of the callback-as-last-parameter system. In version 2.0 we removed support for the first-parameter option because it caused some hard to detect bugs with null parameters. From version 2.0 the callback must be the last parameter, and can not be the first parameter. 就是說以前版本callback參數(shù)是放在參數(shù)列表第一個參數(shù),而在0.9版本中callback參數(shù)改為參數(shù)列表最后一個參數(shù)。到2.0版本取消了對callback參數(shù)前置的支持。
<script src="js/util.js"></script>
<script src="dwr/interface/ItemsBean.js"></script> 由DWR1.0到DWR2.0常出現(xiàn)的問題
在1.0的時候是好使的 換成2.0的時候 就出現(xiàn) Missing method or missing parameter converters 這個錯誤了 2009-3-29 17:44:14 org.directwebremoting.util.CommonsLoggingOutput warn
警告: Marshalling exception: Missing method or missing parameter converters: 主要原因就是DWR2中更新了的內容,原文如下: The callback-as-first-parameter system has been deprecated since version 0.9 in favor of the callback-as-last-parameter system. In version 2.0 we removed support for the first-parameter option because it caused some hard to detect bugs with null parameters. From version 2.0 the callback must be the last parameter, and can not be the first parameter. 就是說以前版本callback參數(shù)是放在參數(shù)列表第一個參數(shù),而在0.9版本中callback參數(shù)改為參數(shù)列表最后一個參數(shù)。到2.0版本取消了對callback參數(shù)前置的支持。
轉載于:https://blog.51cto.com/lijun050802/194188
總結
以上是生活随笔為你收集整理的由DWR1.0到DWR2.0常出现的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SEO中HTML标签权重
- 下一篇: 多选Select排序