4 Replies Latest reply on May 27, 2013 3:17 AM by Juraj Húska

    rich:dataScroller is not working

    kishorekumar rajendran Newbie

      Hi,

       

      I'm using jsf 2.0 and richface 4.2

       

      doing upgradation from 3.3 to 4.2, but in my application it not working.

       

      When i select the page number, In back groud some query also running, but the dataTable is not rendering the value from page 1 to 2.

       

      Any one please give me example code or ideas.

       

      Thanks.

        • 1. Re: rich:dataScroller is not working
          Juraj Húska Master

          Hello,

           

          could you please try to minimize the example you have problem with and to post it here ?

           

          It will be also good to use latest stable version of RichFaces 4.3.2.Final.

           

          Cheers

          Juro

          • 2. Re: rich:dataScroller is not working
            kishorekumar rajendran Newbie

            Juraj,

             

            Thanks for the reply,

             

            i got the solution from this link.

             

            https://community.jboss.org/thread/222722

             

            i have used the guava r09.

             

            now changed to guava-11.0.2.

             

            Thanks.

            • 3. Re: rich:dataScroller is not working
              kishorekumar rajendran Newbie

              Juraj,

               

              rich:dataScroller is not working inside the rich:popupPenal..?

               

              Is there any reason.?

               

              check with fire bug too. not showing any errors also.

               

              code is :

               

                        <h:form>

                        <rich:popupPanel modal="true" id="viewPanel" autosized="true"  height="350" domElementAttachment="form"

                                  <f:facet name="header">

                                      <h:outputText value="#{msg.view_term_schedule}"

                                          styleClass="section_header"  />

                                  </f:facet>

                                  <f:facet name="controls">

                                      <h:panelGroup>

                                          <h:graphicImage value="/images/close.png" styleClass="hidelink"

                                          id="hidelink1" onclick="#{rich:component('viewPanel')}.hide();return false;"/>

                                      </h:panelGroup>

                                  </f:facet>

                                      <div align="center" style="width : 900px; overflow: scroll">

                                      <table>

                                          <tbody>

                                              <tr>

                                                  <td>

                                                          <ui:include src="/pages/fees/viewtermschedule.xhtml" />

                                                   </td>

                                              </tr>

                                          </tbody>

                                      </table>

                                      </div>

                              </rich:popupPanel>

                              </h:form>

               

              "/pages/fees/viewtermschedule.xhtml code is:

               

                                      <h:panelGrid id="termlistgrid">

               

                                          <rich:dataTable

                                              value="#{feeTermController.feeTermScheduleVo.feeSubTerms}"

                                              var="feesterm" rows="10" rowKeyVar="row" id="table"

                                              rendered="#{not empty feeTermController.feeTermTableInfoVo.feeTermsListInfoVo}"

                                              onrowmouseover="over(this)" onrowmouseout="out(this)">

                                              <f:facet name="header">

                                                  <h:outputText value="#{msg.term_list}" styleClass="section_header" />

                                              </f:facet>

                                              <rich:column align="left" style="width: 150px;"

                                                  sortBy="#{feesterm.startDate}" sortOrder="ascending">

                                                  <f:facet name="header">

                                                     <h:outputText value="#{msg.term_name}" styleClass="column_header" />

                                                  </f:facet>

                                                <h:outputText value="#{feesterm.name}" />

                                              </rich:column>

                                              <rich:column align="left" style="width: 150px;">

                                                  <f:facet name="header">

                                                      <h:outputText value="#{msg.term_period}" styleClass="column_header" />

                                                  </f:facet>

                                                  <h:outputText value="#{feesterm.period}" />

                                              </rich:column>

                                              <rich:column align="left" style="width: 125px;">

                                                  <f:facet name="header">

                                                      <h:outputText value="#{msg.startDate}"

                                                          styleClass="column_header" />

                                                  </f:facet>

                                                  <h:outputText value="#{feesterm.strStartDate}" />

                                              </rich:column>

                                              <rich:column align="left" style="width: 100px;">

                                                  <f:facet name="header">

                                                      <h:outputText value="#{msg.viewtermschedule_due_date}"

                                                          styleClass="column_header" />

                                                  </f:facet>

                                                  <h:outputText value="#{feesterm.strDueDate}" />

                                              </rich:column>

                                              <rich:column align="left" style="width: 100px;">

                                                  <f:facet name="header">

               

                                                      <h:outputText value="#{msg.viewtermschedule_fid}"

               

                                                          styleClass="column_header" />

               

                                                  </f:facet>

               

                                                  <h:outputText value="#{feesterm.strFIDate}" />

               

                                              </rich:column>

               

                                              <rich:column align="left" style="width: 100px;">

               

                                                  <f:facet name="header">

               

                                                      <h:outputText value="#{msg.sid}"

               

                                                          styleClass="column_header" />

               

                                                  </f:facet>

               

                                                  <h:outputText value="#{feesterm.strSIDate}" />

               

                                              </rich:column>

               

                                              <rich:column align="left" style="width: 100px;">

               

                                                  <f:facet name="header">

               

                                                      <h:outputText value="#{msg.tid}"

               

                                                          styleClass="column_header" />

               

                                                  </f:facet>

               

                                                  <h:outputText value="#{feesterm.strTIDate}" />

               

                                              </rich:column>

                                              <f:facet name="footer">

                                                  <rich:dataScroller for="table" maxPages="5" style="height : 22px; " renderIfSinglePage="false" />

                                              </f:facet>

                                          </rich:dataTable>

                                      </h:panelGrid>

              • 4. Re: rich:dataScroller is not working
                Juraj Húska Master

                I can not see anything wrong with the code. Could you please minimize the code to a minimal reproducible sample ? So that it can be verified and then possibly a JIRA filed from it.

                 

                DataScroller in PopupPanel worked for me on JBoss AS 7, Chrome and Firefox and Fedora. Could you please share your environment ?