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

Allow a list of a subclass of IColumn in DataTable constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.0.0-beta3
    • 6.0.0
    • wicket-extensions
    • None

    Description

      DataTable constructor requires List<IColumn<T, S>>. My T and S types are parameterized, with multiple parameters. This leads to a lot of typing.

      List<IColumn<MyObject<T>, Descriptor<MyObject<T>, SomethingElse>>> columns = ....

      I want to be able to subclass IColumn<T, S> calling MyColumn<T> with hiding all those type parameters, and take only one type parameter. Like:

      class MyColumn<T> implements IColumn<MyObject<T>, Descriptor<MyObject<T>, SomethingElse>>{}

      but I cannot pass a List<MyColumn<T>> to DataTable constructor. DataTable should take List<? extends IColumn<T, S>> instead of List<IColumn<T, S>>

      Attachments

        1. WICKET-4719.patch
          6 kB
          Jesse Long

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            jesselong Jesse Long
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: