In searching I found that we can do something with rowStateVar or rowIndex attributes of <ace:datatable>, but how?
I tried using <h:outputText value="#{myDataTableVar.rowIndex}"> but it shows an error message that myDataTableVar has no property rowIndex.
For a component library independent way, just use
UIData#getRowIndex()as every component library specific datatable extends from this base component.In the below example,
x:can be anything: standard JSFh:, ICEfacesice:orace:, PrimeFacesp:, RichFacesrich:, etc.Note: the
binding="#{table}"is as-is! You don’t need to bind it to some managed bean property.