Adding serial nos in a table

hi all,I am using a table component in my page.Now what i need is to add a column which displays the serial number i.e. 1, 2 ,3 .......based on the no of rows.Any help is much appreciated.thanks and regards,rpk
[245 byte] By [rpk@trat] at [2007-11-26 11:48:36]
# 1

<ui:staticText binding="#{Page1.staticText8}" id="staticText8"

text="#{currentRow.tableRow.rowId}"/>

If you need it 1 based (not zero based):

text="#{currentRow.tableRow.rowId+1}

currentRow is a TableRowDataProvider

You can follow the class heirarchy from there....

Message was edited by:

yossarian

yossarian at 2007-7-7 12:01:10 > top of Java-index,Development Tools,Java Tools...
# 2
hi,Thank u very much for your solution.Its' working fine for me now.thanks and regards,rpk
rpk@trat at 2007-7-7 12:01:10 > top of Java-index,Development Tools,Java Tools...
# 3
rpk - glad it worked for you -y
yossarian at 2007-7-7 12:01:10 > top of Java-index,Development Tools,Java Tools...