ICEfaces
  1. ICEfaces
  2. ICE-10878

ace:dataTable - Add a fast forward and fast rewind buttons for pagination

    Details

      Description

      Feature Request: The ice:dataPaginator has the ability to render a fast forward and fast rewind buttons which will move the pages ahead by 3 at a time.

      The current paginator functionality of the ace:dataTable only has the capability to move to the first or last pages, as well as move ahead and back on.

      This request is to add similar fast forward and fast rewind functionality to the ace:dataTable. This should be configurable with the paginatorTemplate attribute.

        Activity

        Hide
        Arturo Zambrano added a comment - - edited

        r46974: added fast forward and fast rewind buttons for pagination
        r46975: updated paginator demo in showcase app to use fast forward and fast rewind buttons

        Show
        Arturo Zambrano added a comment - - edited r46974: added fast forward and fast rewind buttons for pagination r46975: updated paginator demo in showcase app to use fast forward and fast rewind buttons
        Hide
        Ken Fyten added a comment -

        #1. Sounds fine.
        #2. Given that using the most common modifier key combinations with the arrow keys is bound to overlap with existing usages in the browser and operating system, I think we can leave this specific keyboard shortcut support out for these for now.
        #3. Agreed, go ahead and add a configuration parameter for this since the notion of what a "fast forward/rewind" is would be highly context specific. Eg. If the user is navigating through 1000 pages, then perhaps 100 pages jump ahead is more appropriate than 3, etc.

        Show
        Ken Fyten added a comment - #1. Sounds fine. #2. Given that using the most common modifier key combinations with the arrow keys is bound to overlap with existing usages in the browser and operating system, I think we can leave this specific keyboard shortcut support out for these for now. #3. Agreed, go ahead and add a configuration parameter for this since the notion of what a "fast forward/rewind" is would be highly context specific. Eg. If the user is navigating through 1000 pages, then perhaps 100 pages jump ahead is more appropriate than 3, etc.
        Hide
        Arturo Zambrano added a comment -

        r46977: added 'pagesToSkip' attribute to configure the number of pages to skip when pressing the FastRewind and FastForward buttons

        Show
        Arturo Zambrano added a comment - r46977: added 'pagesToSkip' attribute to configure the number of pages to skip when pressing the FastRewind and FastForward buttons
        Hide
        Ken Fyten added a comment -

        On second consideration, I don't think we better add the new buttons to the paginatorTemplate by default, as this will likely cause issues for existing applications that do not have a large number of pages to view.

        Instead, users will need to specify these themselves via the paginatorTemplate attribute. We do need document there existence clearly so folks know they are there to use.

        In addition, we should add dynamic configuration options for these and the related "pagesToSkip" attribute to the existing paginator demo. Also, these buttons should be added to the existing lazy-loading demo paginator, with the pagesToSkip set to 10.

        Show
        Ken Fyten added a comment - On second consideration, I don't think we better add the new buttons to the paginatorTemplate by default, as this will likely cause issues for existing applications that do not have a large number of pages to view. Instead, users will need to specify these themselves via the paginatorTemplate attribute. We do need document there existence clearly so folks know they are there to use. In addition, we should add dynamic configuration options for these and the related "pagesToSkip" attribute to the existing paginator demo. Also, these buttons should be added to the existing lazy-loading demo paginator, with the pagesToSkip set to 10.
        Hide
        Arturo Zambrano added a comment -

        r46989: removed the FastForward and the FastRewind buttons from the default paginator template and clearly documented them in the TLD documentation
        r46990: added dynamic configuration options to the paginator demo for the FastForward and FastRewind buttons and for the pagesToSkip value; added these buttons to the lazy loading demo with a pagesToSkip value of 10

        Show
        Arturo Zambrano added a comment - r46989: removed the FastForward and the FastRewind buttons from the default paginator template and clearly documented them in the TLD documentation r46990: added dynamic configuration options to the paginator demo for the FastForward and FastRewind buttons and for the pagesToSkip value; added these buttons to the lazy loading demo with a pagesToSkip value of 10
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r46995. Tomcat 8, FF 34, Chrome 47, IE 11, 10, 9, 8.
        Showcase test scripts updated.
        New QA test app /views/paginatorFastForwardRewind.jsf added to http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/dataTable.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r46995. Tomcat 8, FF 34, Chrome 47, IE 11, 10, 9, 8. Showcase test scripts updated. New QA test app /views/paginatorFastForwardRewind.jsf added to http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/dataTable .

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: