You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/08/22 09:49:37 UTC

[jira] [Resolved] (WICKET-4719) Allow a list of a subclass of IColumn in DataTable constructor

     [ https://issues.apache.org/jira/browse/WICKET-4719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4719.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.0.0
         Assignee: Martin Grigorov

The patch is applied.
                
> Allow a list of a subclass of IColumn in DataTable constructor
> --------------------------------------------------------------
>
>                 Key: WICKET-4719
>                 URL: https://issues.apache.org/jira/browse/WICKET-4719
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 6.0.0-beta3
>            Reporter: Jesse Long
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.0.0
>
>         Attachments: WICKET-4719.patch
>
>
> 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>>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira