【发布时间】:2015-05-13 07:23:55
【问题描述】:
我有一个带有表单面板的 extjs 弹出窗口,我想知道如何将表单面板中的数据发送到我的 spring 控制器?
var formPanel = {
xtype : 'form',
height : 125,
autoScroll : true,
id : 'formpanel',
defaultType : 'field',
frame : true,
items : [
{
fieldLabel : 'Name'
},
{
fieldLabel : 'Age'
}
]
};
function openIFrame() {
Ext.create('Ext.window.Window', {
title : 'Import your devices',
width: 500,
height: 500,
layout: 'fit',
items: [formPanel]
}).show();
}
【问题讨论】:
-
@zan 我添加了我的代码,我将创建一个“提交”按钮来发送表单,但我不确定是否可以在我的 spring 控制器中发送和恢复数据
-
“不确定”?您是否真的尝试过在 Spring 控制器中处理请求?它奏效了吗?如果不是,为什么?
-
@JeromeCampeaux 我的回答对你有用吗?
-
@JamesSchermann 谢谢你的回复,我终于用另一种方式来做我的事情了;)也许它会在未来帮助我:)
标签: spring forms extjs controller