You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Robert Dahlström (JIRA)" <ji...@apache.org> on 2010/01/20 13:00:57 UTC
[jira] Reopened: (WICKET-2676) DataTable defines newCellItem to
take IModel but should really do IModel>
[ https://issues.apache.org/jira/browse/WICKET-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Dahlström reopened WICKET-2676:
--------------------------------------
Added attachment that fails with a cast exception when run.
Either it is an indication of the issue, or I've misunderstood how to work with generics & datatable.
Br
Robert
> DataTable defines newCellItem to take IModel<T> but should really do IModel<IColumn<T>>
> ---------------------------------------------------------------------------------------
>
> Key: WICKET-2676
> URL: https://issues.apache.org/jira/browse/WICKET-2676
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.4.5
> Reporter: Robert Dahlström
> Assignee: Igor Vaynberg
> Attachments: quickstart.zip
>
>
> The generics support in DataTable seems to not work entirely correctly:
> In the below the override for newCellItem actually gets a Model<IColumn> model, not a Model<T>, so perhaps it should be changed.
> do new AjaxFallbackDefaultDataTable<SomeClass>() {
> @Override
> protected Item<SomeClass> newRowItem(String id, int index, IModel<SomeClass> model) {}
> @Override
> protected Item<SomeClass> newCellItem(String id, int index, IModel<SomeClass> model) {
> // Model here is not Model<SomeClass> but Model<IColumn<SomeClass>>
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.