posts - 431,  comments - 344,  trackbacks - 0
<jmesa:htmlColumn 
    property="born"
   pattern="MM/yyyy"
    cellEditor="org.jmesa.view.editor.DateCellEditor"/>

package com.founder.web.ext;

import Java.util.Date;
import Java.util.HashMap;
import Java.util.Map;

import org.jmesa.core.filter.DateFilterMatcher;
import org.jmesa.core.filter.FilterMatcher;
import org.jmesa.core.filter.FilterMatcherMap;
import org.jmesa.core.filter.MatcherKey;

public class DateFilterMatcherMap implements FilterMatcherMap {

 public Map<MatcherKey, FilterMatcher> getFilterMatchers() {
  Map<MatcherKey, FilterMatcher> filterMatcherMap = new HashMap<MatcherKey, FilterMatcher>();
  filterMatcherMap.put(new MatcherKey(Date.class, "born"), new DateFilterMatcher("MM/dd/yyyy"));
  return filterMatcherMap;
 }

}

现在需要修改tableFacade标签为

<jmesa:tableFacade
    id
="tag"
    filterMatcherMap="com.founder.web.ext.DateFilterMatcherMap"
posted on 2008-06-20 14:59 周锐 阅读(663) 评论(0)  编辑  收藏 所属分类: AjaxCSSHTML

只有注册用户登录后才能发表评论。


网站导航: