没有合适的资源?快使用搜索试试~ 我知道了~
ec标签在struts2.0中的使用
4星 · 超过85%的资源 需积分: 9 63 下载量 24 浏览量
2009-12-29
16:13:43
上传
评论
收藏 48KB DOC 举报
温馨提示
试读
5页
<ec:table items="presidents" var="pres" imagePath="${pageContext.request.contextPath}/images/*.gif" action="${pageContext.request.contextPath}/presidents.run" filterable="false" sortable="false" > ... </ec:table> <ec:table>里的属性还有......
资源推荐
资源详情
资源评论
struts 中 ec 标签的使用 2008-07-08 09:461.
<ec:table
items="presidents"
var="pres"
imagePath="${pageContext.request.contextPath}/images/*.gif"
action="${pageContext.request.contextPath}/presidents.run"
filterable="false"
sortable="false" >
...
</ec:table>
<ec:table>里的属性还有:
a. rowsDisplayed,rowsDisplayed 也可以在 extremecomponents.properties 文件中设定
b. showPagination ,如果你想在一页中显示所有行,只需要设置 showPagination 为 false。
c. TableTag 关联了很多样式属性:
<ec:table cellspacing="0" cellpadding="0" border="0" width="80%" style="" styleClass="" />
所有这些都是可选的。
2.
使用 highlightRow 属性可以设置行的高亮显示,它的值为 true 或 false,默认值为 false。
<ec:table items="presidents" var="pres"
action="${pageContext.request.contextPath}/presidents.run" >
<ec:row highlightRow="true">
<ec:column property="name"/>
<ec:column property="term"/>
</ec:row>
</ec:table>
设置 highlightRow 属性后,它将插入 设置行 css 类的 javascript 脚本,默认的 css 类为
highlight。你可以使用 highlightClass 来使用定制的 css 类。
3.
为了便于你对于行数据进行动态交互处理,提供了 onclick、onmouseover 和 onmouseout 属
性。
<ec:row onclick="" onmouseover="" onmouseout="" />
4.
RowTag 关联了很多样式属性:
<ec:row style="" styleClass="" highlightClass="" />
suosanran
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页