eXtreme Table 的基本用法及配制

news/2024/7/4 14:54:14
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去试试吧! 

http://www.niftyadmin.cn/n/1733052.html

相关文章

cron定时任务和No MTA installed, discarding output错误处理

陈拓 2021/09/09-2020/09/12 0. 我的系统 lsb_release -a 1. 设置cron 为了定时执行程序启用cron。 我的项目需求为每5分钟执行一次hkCapJpeg1。下面通过编辑crontab进行设置。 crontab编辑命令 crontab -e 选择1&#xff1a; 在crontab的最后添加&#xff1a; */5 * * * …

将childNodes返回的数据转化维数组的方法

1 //将childNodes返回的数据转化为数组的方法2 function convertToArray(nodes){3 var arraynull;4 try{5 arrayArray.prototype.slice.call(nodes,0);6 }catch(ex){7 a…

extremetable改装

http://www.icnote.com/Extreme-Table/在一个项目中用到了extremetable&#xff0c;但是有些的体现形式还不符合业务的需求&#xff0c;所以做了些改动。下面贴出来&#xff0c;供大家参考&#xff1a;主要增加功能&#xff1a;加入 全选 反选 全不选 的按钮&#xff0c;外观…

web端 css hack(一)

逢10月小长假&#xff0c;几天不敲键盘&#xff0c;浑身难受。也是有时间分享一下自己遇到的css问题。先说一下什么css hack 简单介绍一下css hack&#xff1a; 定义&#xff1a; 一般都是利用各浏览器的支持CSS的能力和BUG来进行的&#xff0c;可以分为能力选择和怪癖选择(BU…

将本地已有项目添加到gitee仓库中

陈拓 2021/09/16-2021/09/17 1. 创建gitee仓库hk-Console 新建 点击 仓库地址 https://gitee.com/linkdle/hk-console 2. 克隆hk-Console 我的系统克隆hk-Console到本地 git clone https://gitee.com/linkdle/hk-console.git 查看hk-console 进入目录hk-console cd hk-cons…

修改git commit的注释

2021/09/17-2020/09/17 在《将本地已有项目添加到gitee仓库中》 https://zhuanlan.zhihu.com/p/411306340 https://blog.csdn.net/chentuo2000/article/details/120345622 一文中我们已经发布(push)了几个项目到gitee仓库&#xff0c; 下面我们将远程的注释“海康NVR工具集…

01html基础

01_html 1 Mac中的快捷键 基础快捷键&#xff1a; command c 复制command v 粘贴command m 最小化当前窗口Shift command c 桌面环境打开Findercommand space 输入法切换fn F3 快速显示桌面command tab 切换应用程序command shift N 在打开Finder后快速建立文件夹command sh…

Oracle 用户数据字典 以及 查询表字段

http://www.blogjava.net/xiaohewoai/archive/2010/02/01/311532.html查看当前用户的缺省表空间 SQL>select username,default_tablespace from user_users; 查看当前用户的角色 SQL>select * from user_role_privs; 查看当前用户的系统权限和表级权限 SQL>select * f…