You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Leszek Gawron (JIRA)" <ji...@apache.org> on 2014/04/26 15:47:14 UTC
[jira] [Created] (WICKET-5573) FilterToolbar generics broken
Leszek Gawron created WICKET-5573:
-------------------------------------
Summary: FilterToolbar generics broken
Key: WICKET-5573
URL: https://issues.apache.org/jira/browse/WICKET-5573
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 6.15.0
Reporter: Leszek Gawron
Once you were able to create DataTable<User> wrapped inside of
FilterForm<UserFilterDto>
currently FilterToolbar requires you for those two types to be identical:
{code}
public <T, S> FilterToolbar(final DataTable<T, S> table, final
FilterForm<T> form,
final IFilterStateLocator<T> stateLocator)
{code}
It looks like commit 9b3f9ca1df064fe9c6fde64ccc37fecc504b09a6
introduced a bug long time ago and it carried on:
{code}
- public <T> FilterToolbar(final DataTable<?> table, final
FilterForm<T> form,
+ public <T> FilterToolbar(final DataTable<T> table, final
FilterForm<T> form,
{code}
FilterToolbar constructor should state:
{code}
public <T, F, S> FilterToolbar(final DataTable<T, S> table, final
FilterForm<F> form,
final IFilterStateLocator<F> stateLocator)
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)