日期:2014-05-16 浏览次数:20387 次
/** * Configuration class to configure different aspects of extdirectspring. */ @Bean public ch.ralscha.extdirectspring.controller.Configuration configuration(){ ch.ralscha.extdirectspring.controller.Configuration configuration=new ch.ralscha.extdirectspring.controller.Configuration(); configuration.setBatchedMethodsExecutionPolicy(BatchedMethodsExecutionPolicy.SEQUENTIAL); configuration.setEnableBuffer(false); return configuration; }
queueTransaction: function(transaction) { var me = this, enableBuffer = me.enableBuffer; if (transaction.form) { me.sendFormRequest(transaction); return; } if (typeof transaction.timeout !== 'undefined') { me.sendRequest(transaction); return; } //新添加 me.callBuffer.push(transaction); if (enableBuffer) { //注释掉该行 //me.callBuffer.push(transaction); if (!me.callTask) { me.callTask = new Ext.util.DelayedTask(me.combineAndSend, me); } me.callTask.delay(Ext.isNumber(enableBuffer) ? enableBuffer : 10); } else { me.combineAndSend(); } },