当前位置: 代码迷 >> J2SE >> jsf中的datatable控件如何显示行号呢
  详细解决方案

jsf中的datatable控件如何显示行号呢

热度:150   发布时间:2016-04-24 14:20:38.0
jsf中的datatable控件怎么显示行号呢?
有没有方法呢

------解决方案--------------------
rowIndexVar= "curentRow "

<t:column>
<f:facet name= "header ">
<t:commandSortHeader columnName= "id " arrow= "true ">
<h:outputText value= "#{text[ 'dataTable.rowIndex ']} " />
</t:commandSortHeader>
</f:facet>
<h:commandLink action= "#{appDeptForm.edit} " value= "#{curentRow} ">
<f:param name= "id " value= "#{appDept.id} "/>
<f:param name= "from " value= "list "/>
</h:commandLink>
</t:column>

------解决方案--------------------
学了一招
  相关解决方案