[ 
https://issues.apache.org/jira/browse/WICKET-5573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994573#comment-13994573
 ] 

Andrea Del Bene commented on WICKET-5573:
-----------------------------------------

If there are no objection I will change the code as proposed by Leszek

> 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)

Reply via email to