在使用Spring2.5 + dwr2.0的設定時
測試用的程式一直出現錯誤
2008/2/21 下午 04:49:29 org.directwebremoting.util.CommonsLoggingOutput warn
警告: Marshalling exception: Missing method or missing parameter converters: Server.userList
拜google大神好久後,發現「簡單生活」寫道....
主要原因就是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参数前置的支持。
將javascript中的function中傳值的部份修改後,就能正常顯示了。
















最近在玩spring, dwr, hibernate喔…很好…為以後作準備嗎? ^^
Comment 由 小白 — 三月 8, 2008 @ 12:10 am
to 小白:
要學的東西太多了
只能慢慢累積~~
Comment 由 mayshih — 三月 18, 2008 @ 11:22 am