【SOS】struts2 ext2.0 对象缓存的问题
// 窗体 form1 = new Ext.FormPanel({ // collapsible : true, 是否可以展开 labelWidth : 75, frame : true, title : '公告栏', bodyStyle : 'padding:5px 5px 0', width : 600, waitMsgTarget : true, reader : _jsonFormReader, defaults : { width : 230 }, defaultType : 'textfield', items : [{ xtype : 'hidden', name : 'bulletin.id' },{ fieldLabel : '标题', name : 'bulletin.bt', allowBlank : false,blankText : '请填写标题!',width : 400 },{ xtype:'htmleditor',id:'bulletin.nr',fieldLabel:'內容',height:400,blankText : '请填写内容!',allowBlank : false,enableLinks :true, //这是把链接的按钮去掉.enableLists : true, // 这是把list 排序给去掉,//value: Ext.util.Format.htmlDecode('<FONT color=#ff0000><U><EM>22</EM></U></FONT>'),anchor:'98%' //上述这个是编码转换.. }],buttons : [{ text : '保存', disabled : false, handler : function(){ if(form1.form.isValid()){ //Ext.get('bulletin.nr').dom.value=editorInstance.GetXHTML(true);//获取fckeditor内容赋给textarea form1.form.submit({ url : '/ecommerce/updateBulletin.action', waitMsg : '正在保存数据,稍后...' }); }else{ Ext.Msg.alert('信息', '请填写完成再提交!'); }store.load(); newFormWin.hide(); } }, { text : '取消', handler : function() { newFormWin.hide(); } }] });