diff options
author | Artur Signell <artur.signell@itmill.com> | 2011-04-26 16:10:38 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2011-04-26 16:10:38 +0000 |
commit | 2437bd812b8fbd46ee25d85a93f47cce546c42a7 (patch) | |
tree | ce9cabd4f60c992386cf3eb2f5e9b0c4f24cef61 | |
parent | 96f2068af62353155cce230276011984ae68fb96 (diff) | |
download | vaadin-framework-2437bd812b8fbd46ee25d85a93f47cce546c42a7.tar.gz vaadin-framework-2437bd812b8fbd46ee25d85a93f47cce546c42a7.zip |
#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
-rw-r--r-- | WebContent/release-notes.html | 1 | ||||
-rw-r--r-- | src/com/vaadin/ui/DateField.java | 4 |
2 files changed, 1 insertions, 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.</p> <ul> <li>The <tt>addContainerFilter()</tt> in <b>Container.Filterable</b> no longer accepts a filter string as a parameter, but a <b>Filter</b> object.</li> + <li><tt>DateField</tt>s no longer sets invalidAllowed(false) by default. The new behavior is consistent with all other fields in Vaadin and with DateField in Vaadin 6.3 and earlier.</li> </ul> <h3>Change Log, Future Releases, and Upgrading</h3> 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 <code>DateField</code> 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); } |