1 Reply Latest reply on Apr 15, 2010 8:45 AM by Ilya Shaikovsky

    Datascroller is not getting rendered with extendable datatable on a4j commnadbutton submit

    karthik kasier Newbie

      Hi

       

      I am using RichFaces 3.3.3 release

      data scroller with page no's  is not getting renedered for extendable datatable on a4j commnadbutton submit

       

      here is the code

       

      <h:form>
         <a4j:commandButton value="search"  onmouseover="this.style.color='white';"
         onmouseout="this.style.color='black';" action="#{extendedTableBean.doAction}" 
         reRender="table,tableScroller"> 
            </a4j:commandButton> 
        
         <rich:datascroller align="left" for="table" maxPages="7"  id="tableScroller"   fastControls="hide"/>
        
       
        <rich:extendedDataTable value="#{extendedTableBean.capitalsDataModel}" var="cap" id="table" rows="10"
         width="580px" height="400px" sortMode="#{extendedTableBean.sortMode}" enableContextMenu="false"
          selectionMode="#{extendedTableBean.selectionMode}" paginated="true">
       
         <rich:column sortable="true" sortBy="#{cap.state}"  label="State Name">
          <f:facet name="header">
           <h:outputText value="State Name"/>
          </f:facet>
          <h:outputText value="#{cap.state}"/>
         </rich:column>
         <rich:column sortable="true" sortBy="#{cap.name}" label="State Capital">
          <f:facet name="header">
           <h:outputText value="State Capital"/>
          </f:facet>
          <h:outputText value="#{cap.name}"/>
         </rich:column>
         <rich:column sortable="false" label="Time Zone">
          <f:facet name="header">
           <h:outputText value="Time Zone"/>
          </f:facet>
          <h:outputText value="#{cap.timeZone}"/>
         </rich:column>
        </rich:extendedDataTable>

      </h:form>

       

      After refesh it shows datascroller with page no.s

       

      can you please help me where i was doing wrong

       

      The same code renders datascroller with pageno,s on a4j command button submit correctly for datatable