本帖最后由 LastJune 于 2010-08-31 12:23:09 编辑

解决方案 »

  1.   

    可能有些参数冲突了,去掉不必要的参数
    var comboxStore = new Ext.data.Store({            
                        proxy: new Ext.data.HttpProxy({                
                        url: "TeacherServlet?method=combo"            
                        }),            
                        reader: new Ext.data.JsonReader({                
                            root: 'result',                
                            totalProperty: 'total',//不要                
    //                        id: 'LicenseTypeID', //不要               
                            fields: ['LicenseTypeID', 'Description']            
                            })        
                    });
    添加个事件,看看有没有获取到下拉菜单的值
      

  2.   

    store写的格式不对
    //按照这个格式写:
    var Store = new Ext.data.Store({
        reader: new Ext.data.JsonReader({ id: "id" }, [{ name: "id" }, { name: "text"}]),
        baseParams: { action: "" }, autoLoad: true,
        proxy: new Ext.data.HttpProxy({ url: "" })
    });
    后台传回来的格式
    [{'id':'1','text':"zoujp"},{'id':'2','text':'xyz'}]