How the get the current dataTable row

I have a dataTable with the value from List in the BackingBean. The script is printing the list elements, and I want to get the number of each row. I don't have any enumaration in for the records. Can it be done simply? Thanks for answer.
[260 byte] By [kanana] at [2007-11-27 6:55:18]
# 1
You can use HtmlDataTable#getRowData() to retrieve the current row object in the iteration.But you just want to retrieve row numbers? Then rather use HtmlDataTable#getRowIndex().Also see http://balusc.xs4all.nl/srv/dev-jep-dat.html for several datatable use examples.
BalusCa at 2007-7-12 18:30:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
The Tomahawk version of dataTable provides a rowIndexVar attribute for accessing the row number during rendering. http://myfaces.apache.org/tomahawk/index.html
RaymondDeCampoa at 2007-7-12 18:30:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...