You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2015/06/09 13:40:03 UTC
[jira] [Resolved] (WICKET-5921) Provide a default implementation of
IModelComparator that always returns false
[ https://issues.apache.org/jira/browse/WICKET-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-5921.
-------------------------------------
Resolution: Fixed
Fix Version/s: 7.0.0-M6
6.20.0
> Provide a default implementation of IModelComparator that always returns false
> ------------------------------------------------------------------------------
>
> Key: WICKET-5921
> URL: https://issues.apache.org/jira/browse/WICKET-5921
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.19.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 6.20.0, 7.0.0-M6
>
>
> In few libraries I've seen code like:
> {code}
> @Override
> public IModelComparator getModelComparator() {
> return new IModelComparator() {
> private static final long serialVersionUID = 1L;
> @Override
> public boolean compare(Component component, Object object)
> {
> return false;
> }
> };
> }
> {code}
> It would be good if Wicket provide it by default.
> I don't see a good use case for ALWAYS_TRUE though.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)