当前位置: 代码迷 >> Web前端 >> 下传 formpanel
  详细解决方案

下传 formpanel

热度:601   发布时间:2012-11-23 22:54:33.0
上传 formpanel

Ext.ns('Flow.deployProcess');

Flow.deployProcess = function(){
?????? return {
getForm: function(){
var processPanel = new Ext.form.FormPanel({
id: 'processDefinition',
title: '上传流程文件',
frame: true,
lableWidth: 70,
bottonAlign: 'center',
defaults: {allowBlank: false},
fileUpload: true,
items:[
?????? {
??? ?? xtype: 'textfield',
??? ?? inputType: 'file',
??? ?? //fieldLable: '上传流程文件',
??? ?? name: 'process',
??? ?? id: 'processName',
??? ?? margins: '50 0 0 0'
?????? }
????? ],
buttons:[
{text:'上传',
handler: function(){
if(Ext.fly('processName').dom.value ==null || Ext.fly('processName').dom.value == ""){
Ext.Msg.alert('信息','请选择要部署的流程文件');
return false;
}

看看jar包 都引了吗
commons-logging-1.1.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar
struts2-core-2.0.6.jar
xwork-2.0.1.jar
commons-io-1.3.1.jar
commons-fileupload-1.2.jar

?