[
https://issues.apache.org/jira/browse/WICKET-3662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028116#comment-13028116
]
Martin Grigorov commented on WICKET-3662:
-----------------------------------------
It is possible to use ArrayList:
new ListModel<Person>(new ArrayList<Person>())
I'll commit your improvement in 1.5.x only
> Correct Palette generics to use 'extends'
> -----------------------------------------
>
> Key: WICKET-3662
> URL: https://issues.apache.org/jira/browse/WICKET-3662
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-extensions
> Affects Versions: 1.4.17, 1.5-RC3
> Reporter: Clint Checketts
> Priority: Trivial
> Labels: generics
> Fix For: 1.5-RC4
>
> Attachments: palette_extend_list_patch.txt
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> The constructor's for Palette say Model<List<T>> but would be better if it
> said Model<? extends List<? extends T>> since that allows a model of an
> ArrayList as a valid model.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira