摘要: 框架spring+springMVC+mybatis,前台给后台传数据传不了时分秒,所以用springMVC的注解解决了,记录一下controller中如下:/** * * 方法描述 : 使用@InitBinder 标签对表单数据绑定 * @param binder ... 阅读全文
posted @ 2015-07-16 10:09 花语苑 阅读(4352) 评论(0) 推荐(0)
摘要: 前台,extjs,框架,mybatis,spring,springMVC,简单的文件上传下载案例。必要的jar包,commons-fileupload-1.3.1.jar,commons-io-2.0.1.jar,commons-lang-2.6.jar1、extjs前台,文件上传:上传window... 阅读全文
posted @ 2015-07-09 15:29 花语苑 阅读(870) 评论(0) 推荐(0)
摘要: 转载自:http://www.cnblogs.com/java727/p/3300613.htmlSEVERE: IOException while loading persisted sessions: java.io.EOFExceptionjava.io.EOFException at jav... 阅读全文
posted @ 2015-07-09 10:42 花语苑 阅读(713) 评论(0) 推荐(0)
摘要: Extjs的submit()方法提交的数据:如下:this.formPanel.getForm().submit({ url:this.saveUrl, method:'POST', params:{ flag:e }, success:function(for... 阅读全文
posted @ 2015-07-07 14:57 花语苑 阅读(453) 评论(0) 推荐(0)
摘要: 工作中用到了Extjs,从后台获取数据的时候,用到了extjs自己的Ext.data.store方法,然后封装了ExtGridReturn方法,目的:前台用到Ext.data.store读取从后台传过来的数据,后台封装成ExtGridReturn类型前台如下:this.store = new Ext... 阅读全文
posted @ 2015-07-07 14:49 花语苑 阅读(904) 评论(0) 推荐(0)
摘要: 有两个小属性,如下this.on('rowdblclick', this.readContent, this);this.on('cellclick', this.gridCellClick, this); //第一个是单机双击事件,触发的事件,第二个是相应的方法,第三个是作用的范围readCont... 阅读全文
posted @ 2015-07-07 13:59 花语苑 阅读(1349) 评论(0) 推荐(0)
摘要: Extjs的radio的FormPanel的代码如下:{ xtype : 'radiogroup', fieldLabel : '是否置顶', name:'isTop', items : [{ boxLabel : '置顶', name:'isTop', inputValue :... 阅读全文
posted @ 2015-07-07 13:50 花语苑 阅读(4803) 评论(0) 推荐(0)
摘要: this.rdTypeCom=new Ext.form.ComboBox({ hiddenName:'rdType', store:new Ext.data.SimpleStore( { fields:['value','text'], data:[['1','金钱奖励'],['... 阅读全文
posted @ 2015-07-06 17:39 花语苑 阅读(686) 评论(0) 推荐(0)
摘要: Extjs中给同一个GridPanel中的事件添加参数的方法:this.isUse = new Ext.Action({ text:'启用', scope:this, handler:this.isUseWin.createDelegate (this,[1]) }); this.i... 阅读全文
posted @ 2015-07-02 14:22 花语苑 阅读(328) 评论(0) 推荐(0)
摘要: foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。foreach元素的属性主要有 item,index,collection,open,separator,close。item表示集合中每一个元素进行迭代时的别名,index指 定一个名字,用于表示在迭代过程中,每次迭代到... 阅读全文
posted @ 2015-07-02 11:15 花语苑 阅读(184) 评论(0) 推荐(0)