0 Replies Latest reply on Oct 19, 2011 2:59 AM by Prateek Tandon

    Issue related to rich:dataScroller in RichFaces 4.0

    Prateek Tandon Newbie

      Hi,

       

      I am facing the issue in rich:dataScroller whne I am using the same with a4j:repeat.

       

      Actually, I have rich:dataScroller within rich:collapsiblePanel and a4j:repeat like this:

       

      <h:panelGroup layout="block">

          <a4j:repeat value="#{bean.listA}"  var="beanListA" rowKeyVar="beanListARow">

              <rich:collapsiblePanel expanded="#{(beanListARow == 0)}" id="togglePanel" switchType="client" header="#{beanListA.beanListAName}" styleClass="marginTop_10px">

                  <h:panelGroup layout="block">

                      <a4j:repeat value="#{beanListA.listA}" var="beanListB" rowKeyVar="beanListBRow">

                          <h:panelGroup layout="block">

                              <table width="100%" border="0" cellpadding="0" cellspacing="0">

                                  <tr>

                                      <td>

                                          <div>

                                              <div>

                                                  <rich:dataGrid id="beanListATable" value="#{beanListB.listC}" var="beanListC" rowKeyVar="beanListCRow" columns="3" elements="3" style="width:600px;">

                                                      <h:panelGroup layout="block" styleClass="beanListCCardBox #{beanListC.styleClass}">

                                                          <div class="beanListCCardContent">

                                                              <a4j:commandLink action="#{bean.openActivityDetailsPage}" ecute="@form">

                                                              </a4j:commandLink>

                                                              <br />

                                                          </div>

                                                      </h:panelGroup>

                                                      <f:facet name="footer">

                                                          <h:panelGroup rendered="#{beanListB.renderActivityCardDataScroll}">

                                                              <rich:dataScroller id="beanListCdatascroller" fastControls="hide" boundaryControls="hide" />

                                                          </h:panelGroup>

                                                      </f:facet>

                                                  </rich:dataGrid>

                                              </div>

                                          </div>

                                      </td>

                                  </tr>

                              </table>

                          </h:panelGroup>

                      </a4j:repeat>

                  </h:panelGroup>

              </rich:collapsiblePanel>

          </a4j:repeat>

      </h:panelGroup>

       

       

      Highlighted with red color is the DataScroller and a4j:commandlink code written.

       

      Problem :

       

      After we perform scrolling and reaches upto the last stage and we click on a4j:commandLink then the inline popup is opened and the moment we close that popup then

      1. the scroller state is maintained at last stage itself and

      2. again if we click on the command link then the popup window is not displayed

       

      NOTE : - The command link works perfectly when we do the operation for the very first time.

       

       

      Please reply ASAP as I m stuck with this issue and my application is unable to reach upto production server due to this problem.

      Thanks

      Prateek Tandon