From 2437bd812b8fbd46ee25d85a93f47cce546c42a7 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 26 Apr 2011 16:10:38 +0000 Subject: [PATCH] #6407 Removed setInvalidAllowed(false) from DateField to be consistent with other fields and AbstractField declaration of default for invalidAllowed svn changeset:18480/svn branch:6.6 --- WebContent/release-notes.html | 1 + src/com/vaadin/ui/DateField.java | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/WebContent/release-notes.html b/WebContent/release-notes.html index d3b215f6d8..de1f99f3a2 100644 --- a/WebContent/release-notes.html +++ b/WebContent/release-notes.html @@ -72,6 +72,7 @@ contains a number of significant enhancements.

Change Log, Future Releases, and Upgrading

diff --git a/src/com/vaadin/ui/DateField.java b/src/com/vaadin/ui/DateField.java index c153bcc15a..eee26555f7 100644 --- a/src/com/vaadin/ui/DateField.java +++ b/src/com/vaadin/ui/DateField.java @@ -132,7 +132,6 @@ public class DateField extends AbstractField implements * Constructs an empty DateField with no caption. */ public DateField() { - setInvalidAllowed(false); } /** @@ -143,7 +142,6 @@ public class DateField extends AbstractField implements */ public DateField(String caption) { setCaption(caption); - setInvalidAllowed(false); } /** @@ -168,7 +166,6 @@ public class DateField extends AbstractField implements * the Property to be edited with this editor. */ public DateField(Property dataSource) throws IllegalArgumentException { - setInvalidAllowed(false); if (!Date.class.isAssignableFrom(dataSource.getType())) { throw new IllegalArgumentException("Can't use " + dataSource.getType().getName() @@ -191,7 +188,6 @@ public class DateField extends AbstractField implements * the Date value. */ public DateField(String caption, Date value) { - setInvalidAllowed(false); setValue(value); setCaption(caption); } -- 2.39.5