`
yaoba
  • 浏览: 41811 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
社区版块
存档分类
最新评论
文章列表
var tree = Ext.create('Ext.tree.Panel', { ..... viewConfig : { onCheckboxChange : function(e, t) { var item = e.getTarget(this.getItemSelector(), this .getTargetEl()), record; if (item) { record = this.getRecord(item); var check = !record.get('checked'); ...
var p = new Ext.Panel({ title : 'Tab', closable : true, listeners : { beforeclose : function() { alert("beforeclose"); } }, html : "我是二毛" }); tab.add(p); p.tab.on('beforeclose', function() { alert('beforeclose'); return fals ...
在css里加入 /*add*/ .x-form-file-wrap-small { height: 22px ! important; } .x-form-file-wrap-small .x-form-file { height: 22px ! important; } .x-form-file-wrap-medium { height: 30px ! important; } .x-form-file-wrap-medium .x-form-file { height: 30px ! important; } .x-form-fi ...

集装箱编号校验

    博客分类:
  • JAVA
/** * 集装箱类 * * @author yaoba * @version 创建时间 2010-6-21 上午12:16:16 */ public class Container { /** * @param args */ public static void main(String[] args) { System.out.println(check("AMFU8505137")); System.out.println(check("TEXU2982987")); } ...
如果未设置的话默认是DefaultDefaultValueProcessor public class DefaultDefaultValueProcessor implements DefaultValueProcessor { public Object getDefaultValue( Class type ) { if( JSONUtils.isArray( type ) ){ return new JSONArray(); }else if( JSONUtils.isNumber( type ) ){ ...
@Fetch(FetchMode.JOIN) 会使用left join查询  只产生一条sql语句 @Fetch(FetchMode.SELECT)   会产生N+1条sql语句 @Fetch(FetchMode.SUBSELECT)  产生两条sql语句 第二条语句使用id in (.....)查询出所有关联的数据
支持3.X 使用方法 var grid = Ext.grid.GridPanel({ view : new Ext.ux.grid.ColumnLockBufferView({}), cm : new Ext.ux.grid.LockingColumnModel({ columns : [new Ext.grid.RowNumberer(),.....] }) ...... }); Ext.ns('Ext.ux.grid'); /** * 合并BufferView与LockingGridView * ...
    今天使用Ext.FlashComponent添加一个照像功能的flex发现不会执行initialize事件,找了半天没结果,翻了charts的源码才发现initializeComponent后有个javascript的回调方法 this.initializeComponent(); swfReady; this.dispatchEventToJavaScript(swfReady); protected function dispatchEventToJavaScript(param1:Object) : void { ...
今天在使用Ext.ux.maximgb.tg.EditorGridPanel遇到展开记录的不会插入展开的节点中,而是直接插入到表格的末尾,经过无数次的尝试终于发现是JSON-lib不会输出null属性的原因,导致取根节点时_parent:null不会输入,把 json.put("_parent", null); 改成json.put("_parent",JSONNull.getInstance() ) 就可以了,也可以手动把_parent:null加上
今天使用EXT上传时发现返回的结果被加个<pre>标签 后台输入 {success:true} 结果变成 <pre>{success:true}</pre> 原因是contentType为text/plain改成text/html就可以了
JSONObject.fromObject(hibernate对象) 出现以下Exception net.sf.json.JSONException: java.lang.reflect.InvocationTargetException net.sf.json.JSONObject._fromBean(JSONObject.java:959) detaiMessage:Positioned Update not supported. 解决方法如下 JsonConfig jsonConfig=new JsonConfig(); jsonConfig.s ...
Global site tag (gtag.js) - Google Analytics