Hi,
I have been really struggling to get the row index from the richFaces Data Table in my java script function.
I tried the this object, rowKeyVar attribute, dataTable.rowIndex but nothing seems to work. I binded the data table to an htmldatatable, but still returns 1 only.
I am attaching the code for the binding attribute:
<h
ataTable binding="#{myBean.dataTable}">
<h:column>
<f:facet name="header">
<h
utputText value="Row #" />
</f:facet>
<h
utputText value="#{myBean.dataTable.rowIndex + 1}" />
</h:column>
...
</h
ataTable>
Any help or any direction will be highly appreciated.
Thanks