1 2 3 Previous Next 30 Replies Latest reply on Mar 5, 2011 4:19 PM by basharf

    rich:datascroller Help

    basharf

      Hello all,

       

      Could anyone help me I wish that I get a reply ...

       

      I have a data table and below it I have the following:

       

         <rich:dataTable value="#{userTableBean.dataList}" var="dataItem" 

                               rowClasses="row1, row2" id="taskList" rows="2" 

      ..

      ...

      ..

      <rich:datascroller align="left" for="taskList" maxPages="20" />

       

      now when the table contain many records... when I click on "Next Page" scroll .. it doesnt get the next page UNLESS Refresh the whole page...!!!

       

      I am desperate now .. could any one please help ..

       

      Thanks a lot

        • 1. rich:datascroller Help
          boy18nj

          are you using h:form wrapper around the rich:dataTable?

          • 2. rich:datascroller Help
            basharf

            thanks for answering

             

            I am using one h:form that wraps everything ..

             

            the dataTable and other components...

             

            what do you think ?

            • 3. rich:datascroller Help
              boy18nj

              try:

               

              <rich:datascroller align="left" for="taskList" maxPages="20" reRender="@this"/>

               

              if this does not works, then try

               

              <rich:datascroller id="me" align="left" for="taskList" maxPages="20" reRender="@this, @form"/>


              • 4. rich:datascroller Help
                ilya40umov

                Make sure that you are doing everything accordingly to this example:

                http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?skin=classic&demo=dataScroller

                (Does your rich:dataTable have id taskList? etc)

                • 5. rich:datascroller Help
                  basharf

                  Hello Aman and Ilya

                   

                  Thanks  A LOT for replying ... but still didnt work

                   

                  clicking on the scroller changes the number of the scroller ... but the content of the table doesnt get updated unless clicking on a command link to refresh the page

                   

                   

                   

                  I have been struggling but No luck .. I tried Aman's solution ... didnt work

                   

                  Ilya .. even the link you gave me I took it and tried it locally ... but no luck too..

                   

                   

                  I dont know why it doesnt work unless I click on a link that refreshes the page or reload the page ..

                   

                  I am getting desperate here ..

                   

                  Please help

                  • 6. rich:datascroller Help
                    ilya_shaikovsky

                    please post complete page code. maybe using binding at table (just see the attributes list cut in your original snippet)?

                    • 7. rich:datascroller Help
                      basharf

                      Thanks Ilya for responding ...

                       

                       

                       

                       

                       

                       

                      <html xmlns="http://www.w3.org/1999/xhtml"

                            xmlns:ui="http://java.sun.com/jsf/facelets"

                            xmlns:h="http://java.sun.com/jsf/html"

                            xmlns:f="http://java.sun.com/jsf/core"

                            xmlns:c="http://java.sun.com/jstl/core"

                            xmlns:rich="http://richfaces.org/rich">

                      <style>

                          .rf-dt{

                              width:400px;  

                          }

                          .acent{

                              text-align: center;

                          }

                      </style>

                          <h:form id="form">

                              <rich:datascroller align="left" for="table" maxPages="20"/>

                              <rich:dataTable value="#{userTableBean.dataList}" var="dataItem"

                                  id="table" rows="4">

                                   <rich:column>

                                  <h:outputText value="#{dataItem.lastName}" />

                                      <f:facet name="header">

                                          <h:outputText value="Vendor " />

                                      </f:facet>

                                      <h:outputText value="#{dataItem.lastName}" />

                                  </rich:column>

                                  <rich:column>

                                      <f:facet name="header">

                                          <h:outputText value="Model" />

                                      </f:facet>

                                      <h:outputText value="#{dataItem.lastName}" />

                                  </rich:column>

                                  <rich:column>

                                      <f:facet name="header">

                                          <h:outputText value="#{dataItem.lastName}" />

                                      </f:facet>

                                      <h:outputText value="#{dataItem.lastName}" />

                                  </rich:column>

                                  <rich:column>

                                      <f:facet name="header">

                                          <h:outputText value="#{dataItem.lastName}" />

                                      </f:facet>

                                      <h:outputText value="#{dataItem.lastName}" />

                                  </rich:column>

                                  <rich:column>

                                      <f:facet name="header">

                                          <h:outputText value="VIN " />

                                      </f:facet>

                                      <h:outputText value="#{dataItem.lastName}" />

                                  </rich:column>

                              </rich:dataTable>

                              <rich:datascroller align="left" for="table" maxPages="20"/>

                          </h:form>

                      </html>

                      • 8. rich:datascroller Help
                        ilya40umov

                        What JSF/RF versions are you using?

                        • 9. rich:datascroller Help
                          basharf

                          Thanks

                           

                          The version is according to the jars I am using :

                           

                          richfaces-api-3.3.3.Final.jar

                          richfaces-impl-3.3.3.Final.jar

                          richfaces-impl-jsf2-3.3.3.Final.jar

                           

                          Hope it help, thanks again for your concern

                          • 10. rich:datascroller Help
                            gonchar

                            try to add the datascroller element inside your rich:datatable

                            ...

                             

                                <rich:column>

                                    <f:facet name="header">

                             

                                        <h:outputText value="VIN " />

                             

                                    </f:facet>

                             

                                    <h:outputText value="#{dataItem.lastName}" />

                             

                                </rich:column>

                                <f:facet name="footer">

                                    <rich:datascroller align="left" for="table" maxPages="20"/>

                                </f:facet>

                            </rich:dataTable>

                            • 11. rich:datascroller Help
                              basharf

                              thanks for replying .

                               

                              it didnt work

                               

                              it is not clickable any more..

                               

                               

                              • 12. rich:datascroller Help
                                basharf

                                To restate the problem again in brief :

                                 

                                clicking on the scroller changes the number of the scroller ... but the content of the table doesnt get updated unless clicking on a command link to refresh the page

                                 

                                I am desperate ...

                                 

                                help please

                                • 13. rich:datascroller Help
                                  ilya40umov

                                  Well. Try to add reRender="table" to rich:datascroller.

                                  • 14. rich:datascroller Help
                                    basharf

                                    No luck I even took the example as is from

                                     

                                    http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=&sample=simpleScrolling&skin=classic

                                     

                                    and it didnt work

                                     

                                    I am thankfull for everyone

                                     

                                    What should I do

                                    1 2 3 Previous Next