2 Replies Latest reply on Jul 17, 2012 3:50 PM by Alejandro Uyaguari

    How to display row number in richtable use ArrangeableModel

    shawnvictz Newbie

      Hi everyone,

      sorry for my English. i follow the richfaces-showcase to implement my richtable. but i can't display rownumber correctly.

      the xhtml blow:


                                         <rich:dataTable keepSaved="true" id="table" var="model"

                                                        value="#{roleController.dataModel}" rows="20" iterationStatusVar="it"



                                                        rowClasses="odd-row, even-row" styleClass="stable">


                                                                  <f:facet name="header"></f:facet>



                                                        <ui:include src="/component/oa/jpaColumn.xhtml">

                                                                  <ui:param name="controller" value="#{roleController}" />

                                                                  <ui:param name="property" value="name" />


                                                        <f:facet name="footer">

                                                                  <rich:dataScroller id="scroller" fastStep="2" />




      #{it.index} always display 0, how can i fix this ?

      i also try #{roleController.dataModel.rowIndex} , it can't worked either.

      can somebody help me? thanks