3 Replies Latest reply on Aug 26, 2010 12:18 PM by whdanj

    Pagination not working with dataTable.

    whdanj

      Hello, I am new to Richfaces, and am working on the dataTable and datascroller controller, i followed the example in

      the datascroller document, but the pagination is not working,

      when i click the next page, i can see the page index changed in the datascroller, but the content of the dataTable not changed, it is always the first page.

      i used the firebug to debug, i can see there is a post to the server when i click the "Next Page" and the new data is returned, but

      the content of the dataTable remain the same.

       

      Here is my JSP code, please help, thanks a lot!

       

      ==================================================

      <%@page contentType="text/html" pageEncoding="UTF-8"%>

       

      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      <!-- RichFaces tag library declaration -->

       

      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

       

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd">

       

      <f:view>
          <html>
              <head>
                  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
                  <link rel="StyleSheet" href="css/argus.css" type="text/css" />
                  <title>Argus Result Page</title>
              </head>
              <body>

       

                  <rich:panel style="width:900px margin:10px">
                      <a4j:keepAlive beanName="adaptHitBean" ajaxOnly="true"/>
                      <h:form>
                         <rich:datascroller align="left" for="resultTbl" maxPages="20"  reRender="sc2" id="sc1" />
                          <rich:dataTable id="resultTbl" value="#{adaptHitBean.adaptHits}" var="hit"  rows="20" >
                              <f:facet name="header">
                                  <rich:columnGroup>
                                      <h:column>
                                          <h:outputText value="Subject" />
                                      </h:column>

       

                                      <h:column>
                                          <h:outputText value="Date" />
                                      </h:column>

       

                                  </rich:columnGroup>
                              </f:facet>
                             
                              <rich:column>
                                  <h:outputText value="#{hit.subject}"/>
                              </rich:column>
                              <rich:column>
                                  <h:outputText value="#{hit.pubDate}"/>
                              </rich:column>
                          </rich:dataTable>

       

                          <rich:datascroller align="left" for="resultTbl" maxPages="20"   id="sc2" reRender="sc1" />

       

                      </h:form>
                  </rich:panel>
              </body>
          </html>
      </f:view>

        • 1. Re: Pagination not working with dataTable.
          nbelaevski

          Hi Dan,

           

          Can you please add <a4j:log popup="false" /> and check if there are any warnings/errors there?

          1 of 1 people found this helpful
          • 2. Re: Pagination not working with dataTable.
            whdanj
            Hi Nick,
            thanks for the reply. I add "<a4j:log popup="false" />" at the end of form, just after </h:form>,
            Below is the result i get, the red line is the warning message:
            warn[16:51:14,186]: Node for replace by response with id j_id_jsp_1647666286_2:resultTbl:0 not found in document
            From the debug information, I can see the next page data is returned, but it looks that the table "resultTbl" is not found.
            In my jsp page, i have set the id of dataTable as follow:
            <rich:dataTable id="resultTbl" value="#{adaptHitBean.adaptHits}" var="hit"  rows="20" >
            Do I need add any other attributes for the dataTable?
            thanks a lot for your help!
            ========================================================================================
            debug[16:51:14,002]: Have Event [object Object] with properties: target: [object HTMLTableCellElement], srcElement: undefined, type: dataavailable
            debug[16:51:14,002]: Query preparation for form 'j_id_jsp_1647666286_2' requested
            debug[16:51:14,002]: Append hidden control j_id_jsp_1647666286_2 with value [j_id_jsp_1647666286_2] and value attribute [j_id_jsp_1647666286_2]
            debug[16:51:14,003]: Append  hidden control javax.faces.ViewState with value  [1082658460098111586:1321252969499807530] and value attribute  [1082658460098111586:1321252969499807530]
            debug[16:51:14,003]: parameter ajaxSingle with value j_id_jsp_1647666286_2:sc2
            debug[16:51:14,003]: parameter j_id_jsp_1647666286_2:sc2 with value fastforward
            debug[16:51:14,004]: Look up queue with default name
            debug[16:51:14,004]: Creating new transient queue 'j_id_jsp_1647666286_2:sc2' with default settings
            debug[16:51:14,004]: Adding queue 'j_id_jsp_1647666286_2:sc2' to queues registry
            debug[16:51:14,005]: Queue is empty now
            debug[16:51:14,005]: New request added to queue 'j_id_jsp_1647666286_2:sc2'. Queue similarityGroupingId changed to j_id_jsp_1647666286_2:sc2
            debug[16:51:14,005]: Queue will wait 0ms before submit
            debug[16:51:14,005]: Queue 'j_id_jsp_1647666286_2:sc2' will submit request NOW
            debug[16:51:14,006]: NEW AJAX REQUEST !!! with form: j_id_jsp_1647666286_2
            debug[16:51:14,006]: Start XmlHttpRequest
            debug[16:51:14,006]: Request state : 1
            debug[16:51:14,007]: QueryString:   AJAXREQUEST=j_id_jsp_1647666286_0&j_id_jsp_1647666286_2=j_id_jsp_1647666286_2&javax.faces.ViewState=1082658460098111586%3A1321252969499807530&ajaxSingle=j_id_jsp_1647666286_2%3Asc2&j_id_jsp_1647666286_2%3Asc2=fastforward&AJAX%3AEVENTS_COUNT=1&
            debug[16:51:14,012]: Request state : 1
            debug[16:51:14,160]: Request state : 2
            debug[16:51:14,162]: Request state : 3
            debug[16:51:14,163]: Request state : 3
            debug[16:51:14,164]: Request state : 3
            debug[16:51:14,165]: Request state : 4
            debug[16:51:14,165]: Request end with state 4
            debug[16:51:14,166]: Response  with content-type: text/xml;charset=UTF-8
            debug[16:51:14,166]: Full response content: <?xml  version="1.0"?>  <!-- RichFaces tag library declaration -->  <html lang="en_US"  xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link   href="/Coding/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"  rel="stylesheet" type="text/css" /><link  href="/Coding/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"  media="rich-extended-skinning" rel="stylesheet" type="text/css"  /><link  href="/Coding/a4j/s/3_3_3.Finalcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"  rel="stylesheet" type="text/css" /><script  src="/Coding/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.jsf"  type="text/javascript">  </script><script  src="/Coding/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript.jsf"  type="text/javascript">  </script><script  src="/Coding/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/datascroller.js.jsf"  type="text/javascript">  </script><link  href="/Coding/a4j/s/3_3_3.Finalcss/datascroller.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"  rel="stylesheet" type="text/css" /><link  href="/Coding/a4j/s/3_3_3.Finalcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf"  rel="stylesheet" type="text/css" /><script  src="/Coding/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.jsf"  type="text/javascript">  </script></head><body><div  id="j_id_jsp_1647666286_2:sc1" style="" align="left"><table  border="0" cellpadding="0" cellspacing="1"  class="rich-dtascroller-table" id="j_id_jsp_1647666286_2:sc1_table"  style="text-align:left"><tbody><tr><td onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page':  'first'});">««</td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  'fastrewind'});">«</td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  'previous'});"></td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  '1'});">1</td><td  class="rich-datascr-act">2</td><td  class="rich-datascr-inact" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': '3'});">3</td><td  class="rich-datascr-inact" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': '4'});">4</td><td  class="rich-datascr-inact" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': '5'});">5</td><td  class=" rich-datascr-button" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': 'next'});"></td><td  class=" rich-datascr-button" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page':  'fastforward'});">»</td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  'last'});">»»</td></tr></tbody></table><script  type="text/javascript">//<![CDATA[  new Richfaces.Datascroller('j_id_jsp_1647666286_2:sc1',  function(event){A4J.AJAX.Submit('j_id_jsp_1647666286_2',event,{'ignoreDupResponses':true,'implicitEventsQueue':'j_id_jsp_1647666286_2:sc1','similarityGroupingId':'j_id_jsp_1647666286_2:sc1','parameters':{'ajaxSingle':'j_id_jsp_1647666286_2:sc1','j_id_jsp_1647666286_2:sc1':event.memo.page}  ,'containerId':'j_id_jsp_1647666286_0'} ); return false;});  //]]>  </script></div><table  id="j_id_jsp_1647666286_2:resultTbl:0" border="0" cellpadding="0"  cellspacing="0"><colgroup span="2"></colgroup><thead  class="rich-table-thead"><tr><td  id="j_id_jsp_1647666286_2:resultTbl:j_id_jsp_1647666286_6"  class="rich-table-headercell">Subject</td><td  id="j_id_jsp_1647666286_2:resultTbl:j_id_jsp_1647666286_8"  class="rich-table-headercell">Date</td></tr></thead><tbody  id="j_id_jsp_1647666286_2:resultTbl:0:tb"><tr  class="rich-table-row rich-table-firstrow"><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:20:j_id_jsp_1647666286_10">Grandmother  comes to 4-yr-old's rescue with stem cells in  Bangalore</td><td  id="j_id_jsp_1647666286_2:resultTbl:20:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:21:j_id_jsp_1647666286_10">Train  collides with truck in Bangalore; one dead</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:21:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:22:j_id_jsp_1647666286_10">Dying  to give birth, quite literally</td><td  id="j_id_jsp_1647666286_2:resultTbl:22:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:23:j_id_jsp_1647666286_10">One  goal...a Karnataka free of child labour</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:23:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:24:j_id_jsp_1647666286_10">Man  stabs wife to death in broad daylight in Bangalore</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:24:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:25:j_id_jsp_1647666286_10">Lalu  taunts Nitish on Modi ads</td><td  id="j_id_jsp_1647666286_2:resultTbl:25:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:26:j_id_jsp_1647666286_10">Domestic  help held on murder charge</td><td  id="j_id_jsp_1647666286_2:resultTbl:26:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:27:j_id_jsp_1647666286_10">Making  a splash</td><td  id="j_id_jsp_1647666286_2:resultTbl:27:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:28:j_id_jsp_1647666286_10">State  insensitive to fever outbreak, says Chandy</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:28:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:29:j_id_jsp_1647666286_10">Heavy  rain disrupts life in city, suburbs</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:29:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:30:j_id_jsp_1647666286_10">Flood  relief funds: Janardhan Reddy criticises Congress</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:30:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:31:j_id_jsp_1647666286_10">Doctors  refuse swine flu vaccine</td><td  id="j_id_jsp_1647666286_2:resultTbl:31:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:32:j_id_jsp_1647666286_10">Nitish  angry over Modi ad, cancels BJP dinner</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:32:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:33:j_id_jsp_1647666286_10">'Be  careful, please. Don't hurt him'</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:33:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:34:j_id_jsp_1647666286_10">BMC  spends 42-crore to clean drains for rain</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:34:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:35:j_id_jsp_1647666286_10">'Justice'  for Bhopal is just political farce</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:35:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:36:j_id_jsp_1647666286_10">Cane  and able: what a terrible idea, Sirji!</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:36:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:37:j_id_jsp_1647666286_10">Should  teetotallers get priority over alcoholics for liver  transplants?</td><td  id="j_id_jsp_1647666286_2:resultTbl:37:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:38:j_id_jsp_1647666286_10">2004  tsunami fund fiasco hits Karnataka Congress yet again</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:38:j_id_jsp_1647666286_12">2010-06-13</td></tr><tr ><td  id="j_id_jsp_1647666286_2:resultTbl:39:j_id_jsp_1647666286_10">US  fears Pak's elite will siphon-off aid</td><td  class="rich-table-cell"  id="j_id_jsp_1647666286_2:resultTbl:39:j_id_jsp_1647666286_12">2010-06-13</td></tr></tbody></table><div  id="j_id_jsp_1647666286_2:sc2" style=""  align="left"><table border="0" cellpadding="0" cellspacing="1"  class="rich-dtascroller-table" id="j_id_jsp_1647666286_2:sc2_table"  style="text-align:left"><tbody><tr><td onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page':  'first'});">««</td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  'fastrewind'});">«</td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  'previous'});"></td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  '1'});">1</td><td  class="rich-datascr-act">2</td><td  class="rich-datascr-inact" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': '3'});">3</td><td  class="rich-datascr-inact" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': '4'});">4</td><td  class="rich-datascr-inact" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': '5'});">5</td><td  class=" rich-datascr-button" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page': 'next'});"></td><td  class=" rich-datascr-button" onclick="Event.fire(this,  'rich:datascroller:onscroll', {'page':  'fastforward'});">»</td><td  onclick="Event.fire(this, 'rich:datascroller:onscroll', {'page':  'last'});">»»</td></tr></tbody></table><script  type="text/javascript">//<![CDATA[  new Richfaces.Datascroller('j_id_jsp_1647666286_2:sc2',  function(event){A4J.AJAX.Submit('j_id_jsp_1647666286_2',event,{'ignoreDupResponses':true,'implicitEventsQueue':'j_id_jsp_1647666286_2:sc2','similarityGroupingId':'j_id_jsp_1647666286_2:sc2','parameters':{'ajaxSingle':'j_id_jsp_1647666286_2:sc2','j_id_jsp_1647666286_2:sc2':event.memo.page}  ,'containerId':'j_id_jsp_1647666286_0'} ); return false;});  //]]>  </script></div><meta name="Ajax-Update-Ids"  content="j_id_jsp_1647666286_2:sc1,j_id_jsp_1647666286_2:resultTbl:0,j_id_jsp_1647666286_2:sc2"  /><span id="ajax-view-state"><input type="hidden"  name="javax.faces.ViewState" id="javax.faces.ViewState"  value="1082658460098111586:-7464583706810867378" autocomplete="off"  /></span><meta id="Ajax-Response" name="Ajax-Response"  content="true" /><meta name="Ajax-Update-Ids"  content="j_id_jsp_1647666286_2:sc1,j_id_jsp_1647666286_2:resultTbl:0,j_id_jsp_1647666286_2:sc2"  /><span id="ajax-view-state"><input type="hidden"  name="javax.faces.ViewState" id="javax.faces.ViewState"  value="1082658460098111586:-7464583706810867378" autocomplete="off"  /></span><meta id="Ajax-Response" name="Ajax-Response"  content="true" /></body></html>
            debug[16:51:14,167]: Header Ajax-Expired not found, search in <meta>
            debug[16:51:14,168]: search for elements by name 'meta'  in element #document
            debug[16:51:14,169]: Find  <meta name='Ajax-Update-Ids'  content='j_id_jsp_1647666286_2:sc1,j_id_jsp_1647666286_2:resultTbl:0,j_id_jsp_1647666286_2:sc2'>
            debug[16:51:14,169]: Find <meta name='Ajax-Response' content='true'>
            debug[16:51:14,170]: Find  <meta name='Ajax-Update-Ids'  content='j_id_jsp_1647666286_2:sc1,j_id_jsp_1647666286_2:resultTbl:0,j_id_jsp_1647666286_2:sc2'>
            debug[16:51:14,170]: Find <meta name='Ajax-Response' content='true'>
            debug[16:51:14,170]: Header Ajax-Update-Ids not found, search in <meta>
            debug[16:51:14,171]: search for elements by name 'meta'  in element #document
            debug[16:51:14,172]: Find  <meta name='Ajax-Update-Ids'  content='j_id_jsp_1647666286_2:sc1,j_id_jsp_1647666286_2:resultTbl:0,j_id_jsp_1647666286_2:sc2'>
            debug[16:51:14,172]: Update  page by list of rendered areas from response  j_id_jsp_1647666286_2:sc1,j_id_jsp_1647666286_2:resultTbl:0,j_id_jsp_1647666286_2:sc2
            debug[16:51:14,172]: search for elements by name 'script'  in element #document
            debug[16:51:14,174]: <script> in response with src=/Coding/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.jsf
            debug[16:51:14,174]: Such element exist in document
            debug[16:51:14,174]: <script> in response with src=/Coding/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript.jsf
            debug[16:51:14,175]: Such element exist in document
            debug[16:51:14,175]: <script> in response with src=/Coding/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/datascroller.js.jsf
            debug[16:51:14,175]: Such element exist in document
            debug[16:51:14,176]: <script> in response with src=/Coding/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.jsf
            debug[16:51:14,176]: Such element exist in document
            debug[16:51:14,176]: search for elements by name 'link'  in element #document
            debug[16:51:14,178]: <link>  in response with  src=/Coding/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
            debug[16:51:14,178]: Such element exist in document
            debug[16:51:14,178]: <link>  in response with  src=/Coding/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
            debug[16:51:14,179]: Such element exist in document
            debug[16:51:14,179]: <link> in response with src=/Coding/a4j/s/3_3_3.Finalcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
            debug[16:51:14,179]: Such element exist in document
            debug[16:51:14,179]: <link> in response with src=/Coding/a4j/s/3_3_3.Finalcss/datascroller.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
            debug[16:51:14,180]: Such element exist in document
            debug[16:51:14,180]: <link> in response with src=/Coding/a4j/s/3_3_3.Finalcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
            debug[16:51:14,180]: Such element exist in document
            debug[16:51:14,181]: call getElementById for id= org.ajax4jsf.queue_script
            debug[16:51:14,181]: Update page part from call parameter for ID j_id_jsp_1647666286_2:sc1
            debug[16:51:14,181]: call getElementById for id= j_id_jsp_1647666286_2:sc1
            debug[16:51:14,182]: Replace content of node by replaceChild()
            debug[16:51:14,183]: search for elements by name 'script'  in element div
            debug[16:51:14,185]: Scripts in updated part count : 1
            debug[16:51:14,185]: Update part of page for Id: j_id_jsp_1647666286_2:sc1 successful
            debug[16:51:14,185]: Update page part from call parameter for ID j_id_jsp_1647666286_2:resultTbl:0
            debug[16:51:14,186]: call getElementById for id= j_id_jsp_1647666286_2:resultTbl:0
            warn[16:51:14,186]: Node for replace by response with id j_id_jsp_1647666286_2:resultTbl:0 not found in document
            debug[16:51:14,186]: Update page part from call parameter for ID j_id_jsp_1647666286_2:sc2
            debug[16:51:14,186]: call getElementById for id= j_id_jsp_1647666286_2:sc2
            debug[16:51:14,187]: Replace content of node by replaceChild()
            debug[16:51:14,188]: search for elements by name 'script'  in element div
            debug[16:51:14,190]: Scripts in updated part count : 1
            debug[16:51:14,190]: Update part of page for Id: j_id_jsp_1647666286_2:sc2 successful
            debug[16:51:14,190]: call getElementById for id= ajax-view-state
            debug[16:51:14,190]: Hidden JSF state fields: [object HTMLSpanElement]
            debug[16:51:14,191]: Namespace for hidden view-state input fields is undefined
            debug[16:51:14,191]: search for elements by name 'input'  in element span
            debug[16:51:14,192]: Replace value for inputs: 2 by new values: 1
            debug[16:51:14,192]: Input in response: javax.faces.ViewState
            debug[16:51:14,193]: Found same input on page with type: hidden
            debug[16:51:14,193]: search for elements by name 'INPUT'  in element span
            debug[16:51:14,194]: Replace value for inputs: 2 by new values: 0
            debug[16:51:14,194]: call getElementById for id= _A4J.AJAX.focus
            debug[16:51:14,195]: No focus information in response
            debug[16:51:14,219]: Evaluate script replaced area in document: // new  Richfaces.Datascroller('j_id_jsp_1647666286_2:sc1',  function(event){A4J.AJAX.Submit('j_id_jsp_1647666286_2',event,{'ignoreDupResponses':true,'implicitEventsQueue':'j_id_jsp_1647666286_2:sc1','similarityGroupingId':'j_id_jsp_1647666286_2:sc1','parameters':{'ajaxSingle':'j_id_jsp_1647666286_2:sc1','j_id_jsp_1647666286_2:sc1':event.memo.page}  ,'containerId':'j_id_jsp_1647666286_0'} ); return false;}); //
            debug[16:51:14,221]: Script evaluation succeeded
            debug[16:51:14,221]: Evaluate script replaced area in document: // new  Richfaces.Datascroller('j_id_jsp_1647666286_2:sc2',  function(event){A4J.AJAX.Submit('j_id_jsp_1647666286_2',event,{'ignoreDupResponses':true,'implicitEventsQueue':'j_id_jsp_1647666286_2:sc2','similarityGroupingId':'j_id_jsp_1647666286_2:sc2','parameters':{'ajaxSingle':'j_id_jsp_1647666286_2:sc2','j_id_jsp_1647666286_2:sc2':event.memo.page}  ,'containerId':'j_id_jsp_1647666286_0'} ); return false;}); //
            debug[16:51:14,223]: Script evaluation succeeded
            debug[16:51:14,223]: call getElementById for id= org.ajax4jsf.oncomplete
            debug[16:51:14,223]: Processing updates finished, no oncomplete function to call
            debug[16:51:14,224]: After request: queue 'j_id_jsp_1647666286_2:sc2'
            debug[16:51:14,224]: There are 0 requests more in this queue
            debug[16:51:14,224]: Queue is empty now
            • 3. Re: Pagination not working with dataTable.
              whdanj

              Hi all, I still have problems to display the next page data in Richtable, can anyone help? thanks a lot!

               

              From the jsf debug output, the warning is:

              warn[16:51:14,186]: Node for replace by response with id j_id_jsp_1647666286_2:resultTbl:0 not found in document

               

              it seems that first table cell in my datatable can not be found in the page, so the first item of next page can not be put into the datatable, I used

              firebug to debug, and found that the td cell with the id "j_id_jsp_1647666286_2:resultTbl:0" was in my page, why richface can not find it?

               

              Please see attached for the firebug debug information. Many thanks.