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

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

Jesse Long created WICKET-4719:
----------------------------------

             Summary: 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
            Priority: Minor


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

        

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

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Jesse Long (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Long updated WICKET-4719:
-------------------------------

    Attachment: WICKET-4719.patch

WICKET-4719.patch

Patch to allow DataTable to take List<? extends IColumn<T, S>> instead of List<IColumn<T, S>>
                
> 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
>            Priority: Minor
>         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