3 Replies Latest reply on Jul 27, 2012 10:38 AM by laurents78

    Problem With rich:dataScroller and rich:collapsibleSubTable

    Felix Roberto Read Rivero Newbie

      I am having a small problem,

       

      i designed a table, with a collapsibleSubTable,

      everything is fine until y try to navigate the pages,

      it works but the last page if it does not have the amound rows specified by page,

      it shows the ones who where in that place in the page before.

       

      Example

       

      if i have 23 rows in a table who shows 5 rows on a page,

       

      the last page is gona show, rows 21,22,23, 19, 20

       

      any ideas on why and how to fix it?

       

      there is a extract of my code

       

       

      <rich:dataTable id="tabla#{cc.attrs.id}" rowKeyVar="idxFila" value="#{cc.attrs.atributosTabla.listaFilas}" var="fila" rows="5" rowClasses="fila-inpar, fila-par" styleClass="stable">
                <f:facet name="noData">
                          No Se Han Encontrado Registros Para Presentar.
                </f:facet>
      
      
                <rich:column id="columnaNumeral">
                          <f:facet name="header">#</f:facet>
                                    #{(idxFila+1)}
                          </rich:column>
      
      
                          <rich:column rendered="#{cc.attrs.atributosTabla.usaPlantillaComplementaria}">
                                    <rich:collapsibleSubTableToggler for="sbtbl" />
                          </rich:column>
      
      
                          <rich:collapsibleSubTable id="sbtbl" expandMode="ajax" value="#{cc.listaInclusion}" rendered="#{cc.attrs.atributosTabla.usaPlantillaComplementaria}" expanded="#{fila.panelExpandido}">
                                    <rich:column colspan="#{cc.attrs.atributosTabla.cantidadColumnas + 3}">
                                              <rich:panel>
                                                        <ui:include src="#{cc.attrs.atributosTabla.plantillaComplementaria}">
                                                                  <ui:param name="dato" value="#{fila.dato}" />
                                                        </ui:include>
                                              </rich:panel>
                                    </rich:column>
                          </rich:collapsibleSubTable>
      
      
                          <f:facet name="header">
                                    <rich:dataScroller id="scrollerHead#{cc.attrs.id}" for="tabla#{cc.attrs.id}" ignoreDupResponses="true" reRender="tabla#{cc.attrs.id}" requestDelay="700" timeout="2000" fastControls="hide" ajaxSingle="false"/>
                          </f:facet>
        
                          <f:facet name="footer">
                                    <rich:dataScroller id="scrollerFoot#{cc.attrs.id}" for="tabla#{cc.attrs.id}" ignoreDupResponses="true" reRender="tabla#{cc.attrs.id}" requestDelay="700" timeout="2000" fastControls="hide" ajaxSingle="false"/>
                          </f:facet>
      </rich:dataTable>