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:dataTable binding="#{myBean.dataTable}">
<h:column>
<f:facet name="header">
<h:outputText value="Row #" />
</f:facet>
<h:outputText value="#{myBean.dataTable.rowIndex + 1}" />
</h:column>
...
</h:dataTable>
Any help or any direction will be highly appreciated.
Thanks