2 Replies Latest reply on Jun 2, 2011 1:03 PM by chakravarthi reddy

    rich:datascroller help

    chakravarthi reddy Newbie

      Hi Guys,

       

      I am new to this. so please help. I work with JSF 1.2  nd RF 3.1. I am trying to do pagination for a richtable. Data scroller is renderd but does not work. 1st page gets dispalyed but If I click on 2 it does nothing!!Below is the cod esnippet of the richtable and richdatascroller

       

       

       

      <rich:dataTable var="template" id="templateSearch" rows="10"

                                style="width:820px;background-color:#CCFFFF"   rowClasses="OddRow,EvenRow" cellspacing="0"

                              cellpadding="0" border="1" headerClass="SearchHeader"

                                value="#{backing_TemplateSearch.templateResults}"

                                binding="#{backing_TemplateSearch.templateResultsTable}">

                                <a4j:log/>

                          <rich:column>

                            <f:facet name="header">

                              <h:outputText value="#{templateSearchRB.TemplateNameHeader}" styleClass="TemplateSearchResultHeader"/>

                            </f:facet>

                          <a4j:commandLink value="#{template.templateName}" action="#{backing_TemplateSearch.templateNameDetails}"/>

                       

                         </rich:column>

                         <rich:column>

                          <f:facet name="header">

                          <h:outputText value="#{templateSearchRB.TemplateReferenceHeader}"

                                      styleClass="TemplateSearchResultHeader"/>

                         </f:facet>

                         <h:outputText value="#{template.templateReference}"/>

                        </rich:column >

                       <rich:column>

                         <f:facet name="header">

                         <h:outputText value="#{templateSearchRB.CountryHeader}"

                                      styleClass="TemplateSearchResultHeader"/>

                         </f:facet>

                        <h:outputText value="#{template.country}"/>

                      </rich:column>

                     <rich:column>

                       <f:facet name="header">

                        <h:outputText value="#{templateSearchRB.LanguageHeader}"

                                      styleClass="TemplateSearchResultHeader"/>

                      </f:facet>

                       <h:outputText value="#{template.language}"/>

                   

                    </rich:column>

                  <h:inputHidden value="#{template.subject}" />

                  <h:inputHidden value="#{template.templateContent}" />

               <f:facet name="footer">

              <rich:datascroller  reRender="templateSearch" />

               </f:facet>

               </rich:dataTable>