首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

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

2012-01-15 
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>

[解决办法]
学了一招

热点排行
Bad Request.