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

Improve the API's Consistency and Flexibility With Respect to Generics and Collections

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC3
    • wicket, wicket-extensions
    • None

    Description

      There have been discussions about how collections are treated inconsistently in the Wicket API. For example, DropDownChoice allows a model of type IModel<List<? extends T>> and ListView only allows a model of type IModel<List<T>>. The most flexible approach for these situations (for the client code) is to allow IModel<? extends List<? extends T>>. However, merely synchronizing these two particular classes would leave other parts of the API inconsistent (Palette, ListChoice, ListMultipleChoice, etc.). What we need is a consistent approach to this situation across the entire API so that the API is more cohesive and understandable (if the user sees this weird syntax once they'll understand it everywhere).

      Attachments

        1. WICKET-2165.patch
          30 kB
          James Carman

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              jwcarman James Carman
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: