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>
------解决方案--------------------学了一招