<script src="js/engine.js"></script>
<script src="js/util.js"></script>
<script src="dwr/interface/ItemsBean.js"></script>
<script src="js/util.js"></script>
<script src="dwr/interface/ItemsBean.js"></script>
由DWR1.0到DWR2.0常出现的问题
在1.0的时候是好使的 换成2.0的时候 就出现 Missing method or missing parameter converters 这个错误了
在1.0的时候是好使的 换成2.0的时候 就出现 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:
警告: 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参数是放在参数列表第一个参数,而在0.9版本中callback参数改为参数列表最后一个参数。到2.0版本取消了对callback参数前置的支持。
转载于:https://blog.51cto.com/lijun050802/194188