You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "James Carman (JIRA)" <ji...@apache.org> on 2010/03/26 02:57:29 UTC
[jira] Updated: (WICKET-2803) ListMultipleChoice's Constructors
Should Accept IModel extends Collection>
[ https://issues.apache.org/jira/browse/WICKET-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Carman updated WICKET-2803:
---------------------------------
Attachment: WICKET-2803.patch
Here's a patch that opens up the constructors a bit. Unfortunately, I had to just cast the IModel<? extends Collection<T>> to IModel<Collection<T>>. I couldn't monkey with the generics declaration on the class to say that it takes IModel<? extends Collection<T>> because the class definition doesn't accept wildcards. I think this is okay, though.
> ListMultipleChoice's Constructors Should Accept IModel<? extends Collection<T>>
> -------------------------------------------------------------------------------
>
> Key: WICKET-2803
> URL: https://issues.apache.org/jira/browse/WICKET-2803
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4.7
> Reporter: James Carman
> Attachments: WICKET-2803.patch
>
>
> Currently, the constructors accept IModel<Collection<T>> for the "model" of the ListMultipleChoice. Thus, you can't pass in an IModel<Set<T>>. The constructors should be modified to take IModel<? extends Collection<T>> instead.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.