0
点赞
收藏
分享

微信扫一扫

eXtreme Table 的基本用法及配制


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

           


        在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去试试吧! 

举报

相关推荐

0 条评论