2 Replies Latest reply on Jun 3, 2009 5:46 AM by Marcin Nowrot

    Datascroller not working when embedded in list

    Marcin Nowrot Newbie

      Hi All,

      I'm using RF 3.3.1 GA on JBoss 4.2.2.
      I'm having the following problem: I'm trying to attach a scroller to a dataTable and embed it all in a list. The code in my .jsp page is like this:

      <a4j:repeat var="holder" value="#{bean.propertyOneElementList}">
       <rich:datascroller id="bigTableScroller" for="bigTable" />
       <rich:dataTable id="bigTable" value="#{holder.tableContents}" rows="3">
       ...
       </rich:dataTable>
      </a4j:repeat>
      


      as I see, the scroller renders correctly (has multiple pages), but trying to switch to another page results in the following in the server logs:

      10:43:48,627 WARN [UIDatascroller] Datascroller form:j_id_jsp_1817397721_148:bigTable:bigTableScroller: The requested page #2 isn't found in the model containing 1 pages. Paging is reset to page #1
      

      and the page is not switching.

      Is this a bug in RF components or is there something wrong with my code?

      The goal I was trying to achieve here is to find an alternative to Tomahawk aliasBean - a4j:repeat with one element list seemed to do the trick until I encountered the problem above.

      I'll be grateful for any solution or advice you may have

      Best regards,

      Marcin