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

Add getter and setter for data provider to AjaxFallbackDefaultDataTable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC2
    • wicket-extensions
    • None

    Description

      Adding at least getter (and a setter too) for data provider would allow for a lot better handling of customized data providers. For example if data provider's results are dependant on external values like, say, boolean stating if table should contain only rows with some specific statistic ("show only items which are on sale" or anything like that) I'd rather do ((ShopDataProvider)table.getDataProvider()).setShowOnlyItemsOnSale(true); instead of recreating the object and replacing it on the page by doing something like get("table").replace(new AjaxFallbackDefaultDataTable("table", columns, new ShopDataProvider(true)));

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            para Esko Suomi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified