var reader = new Ext.data.JsonReader({ totalProperty : 'totalSize', root : 'data', id : this.recordId, },Ext.data.Record.create(this.readerConfig)); var store = new Ext.data.Store({ proxy : new Ext.ux.data.DWRProxy({ //method: 'post', dwrFunction : this.queryUrl, listeners : { 'beforeload' : function(dataProxy, params){ var o = this.getParams(); //alert(dataProxy); params[dataProxy.loadArgsKey] = [o,params]; }.createDelegate(this) } }), reader : reader }); var grid = new Ext.grid.GridPanel({ id : this.idsArray.grid, layout : 'fit', region : 'center', autoScroll : true, store: store, cm : new Ext.grid.ColumnModel(this.gridCmConfig), sm : new Ext.grid.RowSelectionModel({ singleSelect : true }), loadMask : true });
是不是代码有问题啊,还是后台没有传数据到前台?我在谷歌上调试network,preview上显示结果如下,是不是后台的数据没传过来?
(function(){ var r=window.dwr._[0]; //#DWR-INSERT //#DWR-REPLY r.handleException("49","0",{cause:null,javaClassName:"cn.net.tongfang.web.util.TimeoutException",localizedMessage:"\u767B\u5F55\u8D85\u65F6",message:"\u767B\u5F55\u8D85\u65F6",stackTrace:[{className:"cn.net.tongfang.web.util.DWRTimeoutFilter",fileName:"DWRTimeoutFilter.java",lineNumber:15,methodName:"doFilter",nativeMethod:false},{className:"org.directwebremoting.impl.CreatorModule$1",fileName:"CreatorModule.java",lineNumber:223,methodName:"doFilter",nativeMethod:false},{className:"org.directwebremoting.impl.CreatorModule",fileName:"CreatorModule.java",lineNumber:241,methodName:"executeMethod",nativeMethod:false},{className:"org.directwebremoting.impl.DefaultRemoter",fileName:"DefaultRemoter.java",lineNumber:379,methodName:"execute",nativeMethod:false},{className:"org.directwebremoting.impl.DefaultRemoter",fileName:"DefaultRemoter.java",lineNumber:332,methodName:"execute",nativeMethod:false},{className:"org.directwebremoting.dwrp.BaseCallHandler",fileName:"BaseCallHandler.java",lineNumber:104,methodName:"handle",nativeMethod:false},{className:"org.directwebremoting.servlet.UrlProcessor",fileName:"UrlProcessor.java",lineNumber:120,methodName:"handle",nativeMethod:false},{className:"org.directwebremoting.servlet.DwrServlet",fileName:"DwrServlet.java",lineNumber:141,methodName:"doPost",nativeMethod:false},{className:"javax.servlet.http.HttpServlet",fileName:"HttpServlet.java",lineNumber:648,methodName:"service",nativeMethod:false},{className:"javax.servlet.http.HttpServlet",fileName:"HttpServlet.java",lineNumber:729,methodName:"service",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:292,methodName:"internalDoFilter",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:207,methodName:"doFilter",nativeMethod:false},{className:"org.apache.tomcat.websocket.server.WsFilter",fileName:"WsFilter.java",lineNumber:52,methodName:"doFilter",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:240,methodName:"internalDoFilter",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:207,methodName:"doFilter",nativeMethod:false},{className:"cn.net.tongfang.web.util.HeadFilter",fileName:"HeadFilter.java",lineNumber:31,methodName:"doFilter",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:240,methodName:"internalDoFilter",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:207,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:378,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.intercept.web.FilterSecurityInterceptor",fileName:"FilterSecurityInterceptor.java",lineNumber:109,methodName:"invoke",nativeMethod:false},{className:"org.springframework.security.intercept.web.FilterSecurityInterceptor",fileName:"FilterSecurityInterceptor.java",lineNumber:83,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.ui.ExceptionTranslationFilter",fileName:"ExceptionTranslationFilter.java",lineNumber:101,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.providers.anonymous.AnonymousProcessingFilter",fileName:"AnonymousProcessingFilter.java",lineNumber:105,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.ui.rememberme.RememberMeProcessingFilter",fileName:"RememberMeProcessingFilter.java",lineNumber:109,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter",fileName:"SecurityContextHolderAwareRequestFilter.java",lineNumber:91,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.ui.basicauth.BasicProcessingFilter",fileName:"BasicProcessingFilter.java",lineNumber:174,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.ui.AbstractProcessingFilter",fileName:"AbstractProcessingFilter.java",lineNumber:277,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.ui.AbstractProcessingFilter",fileName:"AbstractProcessingFilter.java",lineNumber:277,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.AbstractProcessingFilter$$FastClassByCGLIB$$32042740",fileName:"<generated>",lineNumber:-1,methodName:"invoke",nativeMethod:false},{className:"net.sf.cglib.proxy.MethodProxy",fileName:"MethodProxy.java",lineNumber:149,methodName:"invoke",nativeMethod:false},{className:"org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor",fileName:"Cglib2AopProxy.java",lineNumber:628,methodName:"intercept",nativeMethod:false},{className:"cn.net.tongfang.framework.security.SSOAuthFilter$$EnhancerByCGLIB$$de4861e7",fileName:"<generated>",lineNumber:-1,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.ui.logout.LogoutFilter",fileName:"LogoutFilter.java",lineNumber:89,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.context.HttpSessionContextIntegrationFilter",fileName:"HttpSessionContextIntegrationFilter.java",lineNumber:235,methodName:"doFilterHttp",nativeMethod:false},{className:"org.springframework.security.ui.SpringSecurityFilter",fileName:"SpringSecurityFilter.java",lineNumber:53,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy$VirtualFilterChain",fileName:"FilterChainProxy.java",lineNumber:390,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.security.util.FilterChainProxy",fileName:"FilterChainProxy.java",lineNumber:175,methodName:"doFilter",nativeMethod:false},{className:"org.springframework.web.filter.DelegatingFilterProxy",fileName:"DelegatingFilterProxy.java",lineNumber:236,methodName:"invokeDelegate",nativeMethod:false},{className:"org.springframework.web.filter.DelegatingFilterProxy",fileName:"DelegatingFilterProxy.java",lineNumber:167,methodName:"doFilter",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:240,methodName:"internalDoFilter",nativeMethod:false},{className:"org.apache.catalina.core.ApplicationFilterChain",fileName:"ApplicationFilterChain.java",lineNumber:207,methodName:"doFilter",nativeMethod:false},{className:"org.apache.catalina.core.StandardWrapperValve",fileName:"StandardWrapperValve.java",lineNumber:212,methodName:"invoke",nativeMethod:false},{className:"org.apache.catalina.core.StandardContextValve",fileName:"StandardContextValve.java",lineNumber:106,methodName:"invoke",nativeMethod:false},{className:"org.apache.catalina.authenticator.AuthenticatorBase",fileName:"AuthenticatorBase.java",lineNumber:502,methodName:"invoke",nativeMethod:false},{className:"org.apache.catalina.core.StandardHostValve",fileName:"StandardHostValve.java",lineNumber:141,methodName:"invoke",nativeMethod:false},{className:"org.apache.catalina.valves.ErrorReportValve",fileName:"ErrorReportValve.java",lineNumber:79,methodName:"invoke",nativeMethod:false},{className:"org.apache.catalina.valves.AbstractAccessLogValve",fileName:"AbstractAccessLogValve.java",lineNumber:616,methodName:"invoke",nativeMethod:false},{className:"org.apache.catalina.core.StandardEngineValve",fileName:"StandardEngineValve.java",lineNumber:88,methodName:"invoke",nativeMethod:false},{className:"org.apache.catalina.connector.CoyoteAdapter",fileName:"CoyoteAdapter.java",lineNumber:522,methodName:"service",nativeMethod:false},{className:"org.apache.coyote.http11.AbstractHttp11Processor",fileName:"AbstractHttp11Processor.java",lineNumber:1095,methodName:"process",nativeMethod:false},{className:"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler",fileName:"AbstractProtocol.java",lineNumber:672,methodName:"process",nativeMethod:false},{className:"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor",fileName:"AprEndpoint.java",lineNumber:2500,methodName:"doRun",nativeMethod:false},{className:"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor",fileName:"AprEndpoint.java",lineNumber:2489,methodName:"run",nativeMethod:false},{className:"java.util.concurrent.ThreadPoolExecutor",fileName:"ThreadPoolExecutor.java",lineNumber:1145,methodName:"runWorker",nativeMethod:false},{className:"java.util.concurrent.ThreadPoolExecutor$Worker",fileName:"ThreadPoolExecutor.java",lineNumber:615,methodName:"run",nativeMethod:false},{className:"org.apache.tomcat.util.threads.TaskThread$WrappingRunnable",fileName:"TaskThread.java",lineNumber:61,methodName:"run",nativeMethod:false},{className:"java.lang.Thread",fileName:"Thread.java",lineNumber:745,methodName:"run",nativeMethod:false}],suppressed:[]}); })();
后台调试一下 看看是否进入后台、2:用google f12 或者狐火 看看控制台有没有错误日志。3:对着官方例子 看具体的有没有写错。一一排除问题。