var templeteBean = Ext.data.Record.create([
{name: "retrunValue", mapping: "id", type: "string"},
{name: "displayText", mapping: "name", type: "string"}
]);
var store = new Ext.data.Store({
proxy: new Ext.data.DWRProxy(KnowledgeTempleteAction.getTempleteForCombobox, true),
reader: new Ext.data.ListRangeReader({
totalProperty: 'totalSize',
id:'id'
}, templeteBean)
});
store.load();
如上代码,getTempleteForCombobox这个方法本身不需要任何参数,但是通过Proxy去后台取数据的时候,如果getTempleteForCombobox这个方法的定义中没有参数声明,那么前台就取不到任何数据(虽然根据DEBUG根据后台已经返回需要的数据)。所以只能把getTempleteForCombobox定义为getTempleteForCombobox(Map condition)。
159

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



