`
toyota2006
  • 浏览: 546059 次
  • 性别: Icon_minigender_1
  • 来自: 石家庄
社区版块
存档分类
最新评论

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里一般只写需要修改的文件:
          
  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去试试吧!

分享到:
评论
6 楼 fredweng 2007-08-14  
为什么 我把的CSS不能调用?把TEST里面的<STYLE>去掉后,调用extremecomponents.css,<%@ taglib uri="/tld/c" prefix="c" %>
<link rel="stylesheet" type="text/css" href="<c:url value="/styles/extremecomponents.css"/>">.说/tld/c没找到
5 楼 sunnywhy 2006-10-30  
可以参考springSide,排序什么的都实现的很好,还有wiki说明文档
4 楼 cixuanfo 2006-10-30  
zelsa 写道
File "/tld/extremecomponents" not found ?


在web.xml里添加
<taglib>
      <taglib-uri>/tld/extremecomponents</taglib-uri>
      <taglib-location>/WEB-INF/tld/extremecomponents.tld</taglib-location>
   </taglib>
3 楼 melin 2006-10-18  
我的排序一直没成功。在社区的朋友也有没成功,一直很奇怪。
2 楼 toyota2006 2006-09-26  
extremecomponents.tld 文件在dist 目录中
1 楼 zelsa 2006-09-25  
File "/tld/extremecomponents" not found ?

相关推荐

Global site tag (gtag.js) - Google Analytics