登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

清风幻影的博客

Where there is love, I will be there.

 
 
 

日志

 
 
关于我

同是天涯沦落人,相逢何必曾相识. 天生我材必有用,千金散尽还复来. 天若有情天亦老,人间正道是沧桑. 月影西斜人已去, 堤上梅花情依旧, 此情故已成追忆, 美人如玉夜留香

eXtreme Table 的基本用法及配制  

2010-01-28 14:00:00|  分类: eXtremeTable |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
http://www.javaeye.com/topic/24980
1。简介:
     Extreme Table 是ExtremeCompontents(Home Page:http://www.extremecomponents.org? )中一个功能强大     而又容易配置,扩展,自定义的Table 控件,其功能包括排序, 分页, 导出Excel, pdf和汇总。

2。基本配制:
     1)首先下载发行包 http://sourceforge.net/projects/extremecomp;
     2)将包内的extremecomponents.jar 文件拷贝到项目的 WEB-INF/lib 目录中  
     3)将 dist 目录中的 extremecomponents.tld 文件拷贝到 WEB-INF 中    
     4)将 test 目录中的 test.jsp 文件拷贝到 webroot目录中  (测试用Demo)
     5)将 images 文件夹拷贝到 webroot目录中
     6)将  extremecomponents.css 拷贝到 webroot/css目录中
     7)在/source/org/extremecomponents/table/core目录找到extremetable.properties文件,
       把它复制到src/conf里面并进行修改(ExtremeTable支持在properties文件里方便的统一配置丰富的全局属性).

        在extremetable.properties里一般只写需要修改的文件:
          
Java代码 复制代码
  1. table.filterable=false  
  2.            table.imagePath=/images/table/*.gif   
  3.            table.locale=zh_CN   
  4.            table.view.html=org.extremecomponents.table.view.CompactView   
  5.            row.highlightRow=true  
  6.            column.format.date=yyyy-MM-dd   
  7.            column.format.currency=###,###,###,###,#00.00  
  table.filterable=false               table.imagePath=/images/table/*.gif               table.locale=zh_CN               table.view.html=org.extremecomponents.table.view.CompactView               row.highlightRow=true               column.format.date=yyyy-MM-dd               column.format.currency=###,###,###,###,#00.00

           
        在web.xml中加上:
           
Java代码
  1. <context-param>   
  2.                 <param-name>extremecomponentsPreferencesLocation</param-name>   
  3.                 <param-value>/extremetable.properties</param-value>   
  4.             </context-param>  
<context-param>               <param-name>extremecomponentsPreferencesLocation</param-name>               <param-value>/extremetable.properties</param-value>              </context-param>
3. 测试:
     
       到些一些基本配制已完毕,运行Tomcat,访问http://localhost:8080/test.jsp
       OK去试试吧! 
  评论这张
 
阅读(1095)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018