You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/06/09 13:40:02 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14578760#comment-14578760 ]
ASF subversion and git services commented on WICKET-5921:
---------------------------------------------------------
Commit 0dab604341abc7e48fd34f4c4c2bc29c188d4054 in wicket's branch refs/heads/wicket-6.x from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=0dab604 ]
WICKET-5921 Provide a default implementation of IModelComparator that always returns false
> 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)