原创作者: toyota2006   阅读:1167次   评论:0条   更新时间:2011-05-26    
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里一般只写需要修改的文件:
          
  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中加上:
           
<context-param>
            	<param-name>extremecomponentsPreferencesLocation</param-name>
            	<param-value>/extremetable.properties</param-value>
            </context-param>
3. 测试:
     
       到些一些基本配制已完毕,运行Tomcat,访问http://localhost:8080/test.jsp
       OK去试试吧!

评论 共 0 条 请登录后发表评论

发表评论

您还没有登录,请您登录后再发表评论

文章信息

  • fins在2006-09-25创建
  • fins在2011-05-26更新
Global site tag (gtag.js) - Google Analytics