Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5921

Provide a default implementation of IModelComparator that always returns false

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.19.0
    • 6.20.0, 7.0.0-M6
    • wicket
    • None

    Description

      In few libraries I've seen code like:

      @Override
      public IModelComparator getModelComparator() {
      	return new IModelComparator() {
      		@Override
      		public boolean compare(Component component, Object object) {
      			return false;
      		}
      	};
      }
      

      It would be good if Wicket provide it by default.

      I don't see a good use case for ALWAYS_TRUE though.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: