This content has been marked as final.
Show 1 reply
-
1. Re: how can I get row index and use it in my code
fabmars Oct 27, 2008 3:15 PM (in response to tonyukuk)What is your problem? succeeding in some data table binding, or getting the row index in a datatable ?
I'll assume this is the row index. Then the rowKeyVar in the rich:dataTable tag will do that.
Use <rich:dataTable ......... rowKeyVar="myVariable">
And then, #{myVariable} in the page code is the row numbr, zero-based.
If now you're trying to do some binding, your java code is ok, but the error doesn't say that. The error says invoiceHome is the problem, not invoiceHome.issueData. In your shoes, I'd check the <managed-bean> declaration of #{invoiceHome} in your faces-config