论坛首页 入门技术论坛

<t:dataTable> 显示行标

浏览 2276 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-03-21  
<t:dataTable id="dataList" width="100%" border="0" cellpadding="0" cellspacing="0"
headerClass="dataTableHeader" footerClass="dataTableHeader"
rowClasses="dataTableRow1,dataTableRow2" var="users"
columnClasses="dataTableColumnCenter,dataTableColumnLeft,
                dataTableColumnCenter,dataTableColumnCenter,
                dataTableColumnCenter,dataTableColumnLeft,dataTableColumnCenter"
value="#{pubUserSet.userDataModel}"
varDetailToggler="toggler"
>
<h:column>
<f:facet name="header">
  <h:outputText value="序号"/>
</f:facet>
<h:outputText value="#{toggler.rowIndex}"/>  //从零开始
</h:column>
   发表时间:2008-03-21  
<t:dataTable id="dataList" width="100%" border="0" cellpadding="0" cellspacing="0"
headerClass="dataTableHeader" footerClass="dataTableHeader"
rowClasses="dataTableRow1,dataTableRow2" var="users"
columnClasses="dataTableColumnCenter,dataTableColumnLeft,
dataTableColumnCenter,dataTableColumnCenter,
dataTableColumnCenter,dataTableColumnLeft,dataTableColumnCenter"
value="#{pubUserSet.userDataModel}"
varDetailToggler="toggler"
>
<h:column>
<f:facet name="header">
<h:outputText value="序号"/>
</f:facet>
<h:outputText value="#{toggler.rowIndex}"/> //从零开始
</h:column>
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics