Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2719

Extract lazy AbstractListDataProvider out of ListDataProvider.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.5
    • 1.4.7, 1.5-M1
    • wicket
    • None

    Description

      ListDataProvider is handy for quickly providing a List as source for a DataView; but it forces you to pass a list object during construction and doesn't allow you to provide a new list.

      That means it becomes hard to update the elements in the DataView when the page is (re)rendered. It might be useful to provide an abstract superclass to ListDataProvider which provides an abstract method for obtaining the list allowing the developer to lazy-load the data he wants to show; making sure to always load up-to-date data when the view is being rendered rather than data he passed in during construction which may have become outdated.

      Attachments

        1. AbstractListProvider.java
          2 kB
          Maarten Billemont

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            lhunath Maarten Billemont
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: