日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

extremecomponents

發(fā)布時間:2024/8/1 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 extremecomponents 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

?

具體教程:

http://www.cnblogs.com/QQParadise/articles/1488920.html

教程中涉及到springmvc的相關(guān)知識

?

下載地址:http://sourceforge.net/projects/extremecomp/

?

下載下來的jar包不知為何目錄結(jié)構(gòu)不對,換成項(xiàng)目中的jar包(extremecomponents-1.0.1.jar),可正常。

?

Web.xml

<!-- 配置tld文件,tomcat6以上,需要加jsp-config-->

??? <jsp-config>

??? <taglib>

??????? <taglib-uri>/tld/extremecomponents</taglib-uri>

??????? <taglib-location>/WEB-INF/tld/extremecomponents.tld</taglib-location>

??? </taglib>

? </jsp-config>

? <!-- 配置過濾器-->

??? <filter>

??????? <filter-name>eXtremeExport</filter-name>

??? ??? <filter-class>org.extremecomponents.table.filter.ExportFilter</filter-class>

??????? <!-- 在 調(diào)用過濾器的doFilter()方法前設(shè)置響應(yīng)報(bào)頭,默認(rèn)在之后-->

??????? <init-param>

???? ??????? ?<param-name>responseHeadersSetBeforeDoFilter</param-name>

???? ??????? ?<param-value>true</param-value>

?? ???? ?</init-param>

??? </filter>

??? <filter-mapping>

??????? <filter-name>eXtremeExport</filter-name>

??????? <url-pattern>/*</url-pattern>

??? </filter-mapping>

?

拷貝test.jsp?? css???? images??? 到項(xiàng)目目錄下。

?

?

載入test.jsp

?

?

JSP中ec標(biāo)簽解析

<ec:table
items="presidents"
var="pres"
imagePath="${pageContext.request.contextPath}/images/*.gif"
action="${pageContext.request.contextPath}/presidents.run"
filterable="false"? //過濾器
sortable="false"? //排序
> <ec:row highlightRow="true"> //鼠標(biāo)移到上邊時,高亮
<ec:column property="name" filterCell="droplist" /> //列過濾器 ??? <ec:column property="lastName" sortable="false"/> //可排序 ?
<ec:column property="term"/> ? <ec:column property="lastName">
${pres.lastName} //指定page中的值
</ec:column> //視圖,和導(dǎo)出文件相關(guān) <ec:column property="lastName" viewsAllowed="pdf"/> ??? <ec:column property="firstName" title=" "/> //表頭 ? ???
</ec:row>
</ec:table> ?

?

?

添加樣式

<ec:row
style=""
styleClass=""
highlightClass=""
/>

?

添加js

<ec:row
οnclick=""
οnmοuseοver=""
οnmοuseοut=""
/>

?

Limit 分頁顯示,類似mysql中的limit

Context context = new HttpServletRequestContext(request);
LimitFactory limitFactory = new TableLimitFactory(context);
Limit limit = new TableLimit(limitFactory); //設(shè)置總的行數(shù),每頁多少行 limit.setRowAttributes(totalRows, DEFAULT_ROWS_DISPLAYED);

?

轉(zhuǎn)載于:https://www.cnblogs.com/amibandoufu/p/5343185.html

總結(jié)

以上是生活随笔為你收集整理的extremecomponents的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。