Ext.onReady(function(){
Ext.QuickTips.init();
var body = Ext.getBody();
Ext.form.TextField.prototype.msgTarget = 'side';
var form1 = new Ext.FormPanel({
id:'formPanel',
labelWidth: 70,
title:'simple form',
bodyStyle:'padding:5px 5px 0',
width: 350,
frame:true,
defaults:{width:230},
url:'http://localhost:8080/extStudy/GetExtFormPanelData',
listeners:{
"actioncomplete":function(_form,_action){
alert("dfas");
}
},
items:[{
xtype:'textfield',
fieldLabel: 'First Name',
name: 'firstName',
allowBlank:false,
blankText:'姓名不能为空',
emptyText:'请输入姓名'
},{
xtype:'textfield',
fieldLabel: 'Last Name',
name: 'lastName'
},{
xtype:'textfield',
fieldLabel:'Country',
name:'country'
},{
xtype:'textfield',
fieldLabel:'Email',
name:'email'
},{
xtype:'timefield',
fieldLabel:'Time',
minValue:'9:00',
increment: 30,
hiddenName:'time'
}],
waitMsgTarget: true,
buttons:[{
text:'确定',
handler:function(){
Ext.getCmp("formPanel").getForm().submit({
waitTitle:'wait',
waitMsg:'wait...',
success: function(form, action) {
Ext.Msg.alert('Success', "chen");
}
});
}
},{
text:'取消'
}]
});
form1.render(body);
});
以上代码提交到servlet(继承了httpservlet,一个空的servlet)为什么一直处于等待,后台看到了formpanel提交的数据,但是没有反馈任何信息,请问需要返回什么东西,格式是什么样子的 谢谢