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.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment