Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-799

Use of the actionListener event of datascroller to maintain the index of the first row inside a managed bean.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.5-SNAPSHOT
    • 1.1.10
    • Data Scroller
    • None
    • Windows XP, jakarta-tomcat-5.0.28.

    Description

      The the HtmlDataScroller class is currently using the actionListener event (in particular the ScrollerActionEvent) to maintain the firstRow index of the dataTable. My idea is that if someone needs to control this variable from inside a managed bean for example in order to maintain the page number in a master/detail scenario then that person can use this actionEvent too. But in order for broadcast method of HtmlDataScroller component class to not overwrite the control logic that one can implement from the bean the suggestion is to modify method: "public void broadcast(FacesEvent event)" changing the broadcastToActionListener(scrollerEvent); to the end of the if (event instanceof ScrollerActionEvent)...portion of the code. This change allows anyone to control the rowIndex from a bean with a simple event-based logic.

      Attachments

        1. patch-TOMAHAWK-799-20092129-2.txt
          0.9 kB
          Ramiro Pereira de Magalhães

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jorgeandresvasquez Jorge Andrés Vásquez
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: