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"

                                                        onrowmouseover="jQuery(this).addClass('active-row')"

                                                        onrowmouseout="jQuery(this).removeClass('active-row')"

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

                                                        <rich:column>

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

                                                    #{it.index}

                                                         </rich:column>

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

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

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

                                                        </ui:include>                                                

                                                        <f:facet name="footer">

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

                                                        </f:facet>

                                              </rich:dataTable>

       

      #{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