1. #1
    Ext User rburgos's Avatar
    Join Date
    Apr 2009
    Location
    Caracas
    Posts
    4
    Vote Rating
    0
    rburgos is on a distinguished road

      0  

    Default Help me! please -- I have a error with the Ext.FormPanel

    Help me! please -- I have a error with the Ext.FormPanel


    Hello friends,

    I have a error in the moment of create a form, the error is only with Ext.FormPanel because the others is perfect!

    The error is as follows (I can see with firebug):

    Code:
       this[a] is null
        createElement()("body", div.x-panel-mc)ext-all.js (línea 8855)
        onRender()(Object dom=div#ext-gen514.x-window-body id=ext-gen514, null)ext-all.js (línea 8872)
        onRender()(Object dom=div#ext-gen514.x-window-body id=ext-gen514, null)ext-all.js (línea 16207)
        render()(Object dom=div#ext-gen514.x-window-body id=ext-gen514, undefined)ext-all.js (línea 6939)
        render()()ext-all.js (línea 7791)
        renderItem()(Object initialConfig=Object labelWidth=100 frame=true, 0, Object dom=div#ext-gen514.x-window-body id=ext-gen514)ext-all.js (línea 7976)
        renderAll()(Object initialConfig=Object, Object dom=div#ext-gen514.x-window-body id=ext-gen514)ext-all.js (línea 7970)
        onLayout()(Object initialConfig=Object, Object dom=div#ext-gen514.x-window-body id=ext-gen514)ext-all.js (línea 7962)
        onLayout()(Object initialConfig=Object, Object dom=div#ext-gen514.x-window-body id=ext-gen514)ext-all.js (línea 8029)
        layout()()ext-all.js (línea 7959)
        doLayout()(undefined)ext-all.js (línea 7886)
        render()()ext-all.js (línea 7798)
        applyToMarkup()("winPanelAplicacionesID")ext-all.js (línea 6997)
        Component()(Object applyTo=winPanelAplicacionesID layout=fit width=500)ext-all.js (línea 6903)
        constructor()()ext-base.js (línea 66)
        constructor()()ext-base.js (línea 66)
        constructor()()ext-base.js (línea 66)
        constructor()()ext-base.js (línea 66)
        (?)()()application.js (línea 150)
        B()()ext-all.js (línea 1049)
        o()()ext-base.js (línea 470)
        [Break on this error] this[a].applyStyles(this[a+"Style"])

    The code is:

    Code:
    buttonNew.on('click', function(){
    
                if(!win){
    
                    win = new Ext.Window({
                        applyTo     : 'winPanelApplID',
                        layout      : 'fit',
                        width       : 500,
                        height      : 320,
                        modal        :true,
                        closeAction :'hide',
                        plain       : true,
                        items       : new Ext.FormPanel({
                            labelWidth        : 100, 
                            url                :'qqq.action',
                            frame            :true,
                            title            : 'Consultas',
                            bodyStyle        :'padding:5px 5px 0',
                            width            : 450,
                            defaults        : {
                                width            :450
                            },
                            defaultType        : 'textfield',
                            items: [field1, field2],
                            buttons            : [{
                                text            : 'Guardar'
                            },{
                                text            : 'Cancelar'
                            }]
                        })
                    });
                }
                win.show(buttonNew);
    
    
            });

    This error occurs when I am using jsp, with PHP I have no problem


    Can anyone help me bypass this

    Thanks in advance


    ==================================
    I'm Learning ExtJs
    Ramón Burgos

  2. #2

Thread Participants: 1