ERROR Message: XXX are applicable for the passed parameters.
javascript
DWRMethods.getStuff(this.currentBusinessId ,this.getStuffCallback);
java
public void getStuff(long userId)
{
//do stuff
}
Either of these will work.
DWRMethods.getStuff(this.currentBusinessId*1,this.getStuffCallback);
DWRMethods.getStuff(parseInt(this.currentBusinessId),this.getStuffCallback);
升级还有点问题,回RC1了
还听说DWR有一些性能问题,后面准备不用DWR,使用REST来取代.
本文讨论了DWR在调用JavaScript方法时遇到的参数类型错误,并提供了两种解决方法:强制类型转换为long或使用parseInt进行转换。此外,作者提到计划从DWR迁移到REST以改善性能。
6万+

被折叠的 条评论
为什么被折叠?



