EXT关闭WINDOW之后,再点击COMBO,报错

代码如下
var cf;

Ext.onReady(function() {
    Ext.QuickTips.init(true);
    cf = new CountryForm();
    cf.render(document.body);
});

CountryForm = Ext.extend(Ext.FormPanel, {
    id : 'CountryForm',
    title : '查询条件',
    frame : true,
    width : 1000,
    bodyStyle : 'padding:0 10px 0;',

    constructor : function(config) {

        var countryGroup = {
            xtype : "panel",
            layout : "form",
            columnWidth : 0.5,
            labelAlign : "right",
            labelWidth : 75,
            items : [ {
                xtype : 'fieldset',
                title : '标题',
                autoHeight : true,
                layout : 'form',
                collapsible : true,
                items : [ {
                    fieldLabel : 'ID',
                    xtype : 'combo',
                    mode : 'local',
                    triggerAction : 'all',
                    id : 'CountrySearchId',
                    name : 'CountrySearchId',
                    displayField:"gender",
                    store:new Ext.data.SimpleStore({
                        fields:["gender"],  
                        data:[["Male"],["Female"]]
                    })
                }]
            } ],
            buttons : [ {
                text : 'POP',
                onClick : doPop
            }]
        };

        CountryForm.superclass.constructor.call(this, {
            items : [ countryGroup ]
        })

    }
});

function doPop() {

    UpdateForm = Ext.extend(Ext.FormPanel, {
        id : 'CountryForm',
        frame : true,
        width : 1000,
        bodyStyle : 'padding:0 10px 0;',
        constructor : function(config) {

            var Country = {
                xtype : "panel",
                layout : "form",
                columnWidth : 0.5,
                labelAlign : "right",
                labelWidth : 75,
                items : [ {
                    xtype : 'fieldset',
                    title : 'sub',
                    autoHeight : true,
                    layout : 'form',
                    items : [ {
                        xtype : 'textfield',
                        name : 'name',
                        fieldLabel : 'name'
                    } ]
                } ]
            };
            UpdateForm.superclass.constructor.call(this, {
                items : [ Country ]
            })

        }
    });

    ResultWindow = function(config) {

        var updateForm = new UpdateForm();

        var buttons = new Array();

        var buttonClose = {
            text : '关闭',
            handler : function() {
                rw.close();
            }
        };

        buttons = [ buttonClose ];

        Ext.apply(this, {
            title : '修改画面',
            layout : 'fit',
            border : false,
            width : 450,
            height : 380,
            minWidth : 450,
            minHeight : 380,
            maximizable : false,
            resizable : false,
            constrainHeader : true,
            modal : true,
            items : updateForm,
            buttons : buttons
        });

        ResultWindow.superclass.constructor.apply(this, arguments);
    };

    Ext.extend(ResultWindow, Ext.Window);

    var rw = new ResultWindow();
    rw.show();

}

用 hide() 不要用close close 会把窗口对象销毁 再点击 就找不到对象了

知道啦 combo 没有fieldLabel 属性 去掉

panel上没有fieldLabel 属性 你要把xtype:'panel'改为formpanel

解决办法 要么把 countryGroup xtype改成formpanel 或者
{
fieldLabel : 'ID',
xtype : 'combo',
mode : 'local',
triggerAction : 'all',
id : 'CountrySearchId',
name : 'CountrySearchId',
displayField:"gender",
store:new Ext.data.SimpleStore({
fields:["gender"],

data:[["Male"],["Female"]]
})
}]
}
改成
[code="java"]
'ID ',{
{ ',
xtype : 'combo',
mode : 'local',
triggerAction : 'all',
id : 'CountrySearchId',
name : 'CountrySearchId',
displayField:"gender",
store:new Ext.data.SimpleStore({
fields:["gender"],

data:[["Male"],["Female"]]
})
}]
}
}
[/code]

用hide()的 close 是有bug 以前也遇到 窗口第一次能打开 再打开 就 打不开