2 Replies Latest reply on Jul 17, 2007 1:00 PM by supernovasoftware.com

    datascroller: get selected pageIndex in action listener prob

      I have the following methond on declared on a SFSB with Conversation scope.

      @Stateful
      @Name("accessManager")
      @Scope(ScopeType.CONVERSATION)


      public void processAction(ActionEvent event) throws AbortProcessingException
       {
       HtmlDatascroller datascroller = (HtmlDatascroller) event.getSource();
       System.out.println("datascroller.getPageIndexe()="+datascroller.getPageIndex());
       }


      <rich:datascroller for="data"
       actionListener="#{accessManager.processAction}" />


      The problem is that the copy I get from event.getSource() returns the index of the previously selected page.

      How can I get the index of the page that was just selected in the actionlistener?