I have a primefaces datatable i need to display (selected row number) of (total number of rows) in the JSF page.I could get the row numbers displayed in one of the columns
I'm surprised by the complex solution in the other answer. Assuming you you have the #{workSpaceBean.lpInfoList}
serverside when doing the 'select', you can easily do (code according to the PrimeFaces showcase, adapt according to your needs)
public void onRowSelect(SelectEvent event) {
int rownum = cars.indexOf((Car)event.getObject());
}