eXtreme Table 的基本用法及配制

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  

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

转载于:https://my.oschina.net/wangjian95/blog/37780

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值