2 Replies Latest reply on Feb 29, 2008 5:04 PM by Brian Vaughn

    datascroller next page issue

    Brian Vaughn Newbie

      Hello, I'm using richfaces 3.1.3 on WAS 6.0 and I am having problems with the next page functionality. When I click on the next arrow the page is not aways going to the next page. I can click on a page number and the page changes with no problems. The next arrow will also navigate in a bizarre manner where it will go from page 4, to 6 to 7 to 5 and so on. Below is the code. Any suggestions?


      <rich:datascroller for="searchResults" maxPages="20"/>
      <rich:dataTable border="0" cellpadding="3" cellspacing="0" rows="10"
       columnClasses="..."
       headerClass="resultsHeaderCenter" footerClass="resultsFooter"
       rowClasses="resultsRow" styleClass="resultsTable" id="searchResults"
       value="#{FETSearchBean.results}" var="record">
       <f:facet name="header">
       <rich:columnGroup>
       <h:column id="divColumnHdr">
       <a4j:commandLink id="sortDiv" styleClass="commandLink"
       onclick="showWaitImage();" oncomplete="hideWaitImage();"
       reRender="messagePanel,searchResults" tabindex="-1"
       title="Sort by Division" ajaxSingle="true"
       action="#{pc_FETUtilizationSearch.doSortColumnAction}">
       <h:outputText id="divHeader" value="DIV"/>
       <f:param id="divSortColumn" name="sortColumnName" value="DIV"/>
       </a4j:commandLink>
       </h:column>
      
       <h:column id="groupingColumnHdr">
       <a4j:commandLink id="sortFetGrouping" styleClass="commandLink"
       onclick="showWaitImage();" oncomplete="hideWaitImage();"
       reRender="messagePanel,searchResults" tabindex="-1"
       title="A collection of FETs associated with a particular business function. Groupings may contain FETs across multiple table types (MEM, MED, GRP)"
       ajaxSingle="true"
       action="#{pc_FETUtilizationSearch.doSortColumnAction}">
       <h:outputText id="groupingHeader" value="FET Grouping"/>
       <f:param id="groupingSort" name="sortColumnName" value="FETGROUPING"/>
       </a4j:commandLink>
       </h:column>
      
       <h:column id="levelOptionColumnHdr">
       <a4j:commandLink id="sortLevelOption" styleClass="commandLink"
       onclick="showWaitImage();" oncomplete="hideWaitImage();"
       reRender="messagePanel,searchResults" tabindex="-1"
       title="Sort by Level Option" ajaxSingle="true"
       action="#{pc_FETUtilizationSearch.doSortColumnAction}">
       <h:outputText value="Level Option"/>
       <f:param name="sortColumnName" value="LEVELOPTION"/>
       </a4j:commandLink>
       </h:column>
      
       <h:column id="fetColumnHdr">
       <h:outputText value="FET" title="Field Edit Table includes various switches to determine how data should process in the system"/>
       </h:column>
      
       <h:column id="parameterColumnHdr">
       <h:outputText value="Parameter"/>
       </h:column>
      
       <h:column id="stdParameterColumnHdr">
       <h:outputText value="Std Parameter"/>
       </h:column>
      
       <h:column id="defaultColumnHdr">
       <h:outputText value="Default Value"/>
       </h:column>
      
       <h:column id="stdDefaultColumnHdr">
       <h:outputText value="Std Default"/>
       </h:column>
      
       <h:column id="severityHdr">
       <h:outputText value="Severity"/>
       </h:column>
      
       </rich:columnGroup>
       </f:facet>
      
       <h:column id="divColumn">
       <h:outputText id="divText" styleClass="#{record.styleClass}" value="#{record.displayHmoId}"/>
       <f:attribute value="6%" name="width" />
       </h:column>
      
       <h:column id="groupingColumn">
       <h:outputText styleClass="#{record.styleClass}" value="#{record.groupName}"/>
       <f:attribute value="10%" name="width" />
       </h:column>
      
       <h:column id="levelOptionColumn">
       <h:outputText styleClass="#{record.styleClass}" value="#{record.clientLevelOptionDesc}"/>
       <f:attribute value="8%" name="width" />
       </h:column>
      
       <h:column id="fetColumn">
       <a4j:commandLink id="showDetailLink" styleClass="commandLink"
       onclick="showWaitImage();" oncomplete="hideWaitImage();" ajaxSingle="true"
       reRender="messagePanel,fetNumber,fetDescription,fetAllowedLevel,groupName,createdBy,createdTs,lastUpdatedBy,lastUpdatedTs,standardParameter,standardValue,settingsTitle,clientName,FETDefinitionValues,FETLevels,defaultValue,inputs,fetSeverity,createdBy,createdTs,lastUpdatedBy,lastUpdatedTs,definitionValueName,defaultValueText,levelName,inputText,fetSeverityName,showDetail,editFormPanel,viewFormPanel"
       tabindex="-1" title="Show FET Detail"
       action="#{pc_FETUtilizationSearch.doShowDetailAction}">
       <h:outputText value="#{record.displayFET}" />
       <f:param name="fetID" id="fetID" value="#{record.listKey}"/>
       </a4j:commandLink>
       <f:attribute value="20%" name="width" />
       </h:column>
      
       <h:column id="parameterColumn">
       <h:outputText styleClass="#{record.styleClass}" value="#{record.displayParameter}"/>
       <f:attribute value="20%" name="width" />
       </h:column>
      
       <h:column id="stdParameterColumn">
       <h:outputText styleClass="#{record.styleClass}" value="#{record.displayStandardParameter}"/>
       <f:attribute value="20%" name="width" />
       </h:column>
      
       <h:column id="defaultColumn">
       <h:outputText value="#{record.defaultValue}"/>
       <f:attribute value="5%" name="width" />
       </h:column>
      
       <h:column id="stdDefaultColumn">
       <h:outputText styleClass="#{record.styleClass}" value="#{record.standardDefault}"/>
       <f:attribute value="5%" name="width" />
       </h:column>
      
       <h:column id="severity">
       <h:outputText styleClass="#{record.styleClass}" value="#{record.severityCdDesc}"/>
       <f:attribute value="6%" name="width" />
       </h:column>
      </rich:dataTable>