1 Reply Latest reply on Sep 26, 2007 5:48 AM by Ilya Shaikovsky

    repeat and datascroller

    Sergio R Pantano Newbie

      Is it possible rich:datascroller works for a4j:repeat, any example??


      I try:

      <a4j:repeat id="list" value="#{users.resultList}" var="record" rows="7">
      

      and
      <rich:datascroller for="list" />

      the datascroller executes, but it doesn´t refresh the repeat.

        • 1. Re: repeat and datascroller
          Ilya Shaikovsky Master

          yes. It isn't trivial because in general - repeat component just an iterator and have no representation in DOM tree. So you need to update wrapper.

          So:

          <a4j:outputPanel id="test">
           <table>
           <tbody>
           <a4j:repeat value="#{capitalsBean.capitals}" var="cap" rows="10" id="table">
           <tr>
           <td>
           <h:outputText value="#{cap.name}"/>
           </td>
           </tr>
           </a4j:repeat>
           </tbody>
           </table>
           </a4j:outputPanel>
           <rich:datascroller for="table" reRender="test"/>


          Will work as you need I think.