这个是appfuse2中的一个bug,dwr2不能使用,会报
在firefox中的错误控制台,显示
"未组织好"
点开后,显示
//#DWR-REPLY
if (window.dwr) dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number: null' });
else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number: null' });
在firebug中显示contentType is null
解决办法:
需要去掉web.xml中的/dwr/*,变为
<filter>
<filter-name>staticFilter</filter-name>
<filter-class>com.xunjia.webapp.filter.StaticFilter</filter-class>
<init-param>
<param-name>includes</param-name>
<param-value>/scripts/dojo/*</param-value>
</init-param>
</filter>
即可。