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

jsf中的datatable控件怎么显示行号呢?有没有方法呢[解决办法]rowIndexVar curentRow t:columnf:face

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>

[解决办法]
学了一招