2013-04-01 3 views
0

extjs 4.2의 DirectSubmit API를 사용하여 양식을 제출하려고합니다.Extjs 4.2 DirectSubmit이 작동하지 않습니다.

오류 메시지는 다음과

오류 : me.form.api.submit 함수 [이 오류 휴식]

me.form.api.submit 아니다 (formInfo.formEl 콜백 , 나);

정확히 동일한 코드 내가이 버그가 4.2

에서 변경된 코드 (directsubmit)를 발견했습니다

는 ExtJS 4.1.1에서 작동? 누군가가 같은 문제를 겪었습니까?

내 코드 :

Ext.define ('ExtMVC.view.MyForm'{ 연장 'Ext.form.Panel'

height: 250, 
width: 400, 
bodyPadding: 10, 
title: 'My Form' 

initComponent: function() { 
    var me = this; 

    me.initialConfig = Ext.apply({ 
     api: { 
submit: 'Actions.Verbis_Processo.update'}, 
     standardSubmit: false 
    }, me.initialConfig); 

    Ext.applyIf(me, { 
     api: { 
submit: 'Actions.Verbis_Processo.update'}, 
     items: [ 
      { 
       xtype: 'textfield', 
       anchor: '100%', 
       fieldLabel: 'Label' 
      }, 
      { 
       xtype: 'button', 
       handler: function(button, event) { 
        button.up('form').getForm().submit(); 
       }, 
       text: 'MyButton' 
      } 
     ] 
    }); 

    me.callParent(arguments); 
} 

을});

나는 extdirect 구성에 @formhandler를 가지고 있습니다.

답변

0

이것은 버그이며 4.2.1에서 수정 될 예정입니다.

관련 문제