Chapter 4. RowTag
RowTag用來定義表中的行。
一個簡單RowTag示例如下:
<ec:table
items="presidents"
var="pres"
action="${pageContext.request.contextPath}/presidents.run"
>
<ec:row>
<ec:column property="name"/>
<ec:column property="term"/>
</ec:row>
</ec:table>
使用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類。
RowTag關聯了很多樣式屬性:
<ec:row
style=""
styleClass=""
highlightClass=""
/>
所有這些都是可選的。highlightClass設置行高亮顯示時的css類; style屬性定義行內聯的樣式;styleClass允許你定義一個行顯示的css類。
為了便于你對于行數據進行動態交互處理,提供了onclick、onmouseover和 onmouseout屬性。
<ec:row
onclick=""
onmouseover=""
onmouseout=""
/>
posted on 2006-02-26 17:32 Lucky 閱讀(613) 評論(0) 編輯 收藏 所屬分類: extremeComponents