]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed #1811: Validation logic is not logical: isRequired == false should not imply...
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sat, 14 Jun 2008 14:03:23 +0000 (14:03 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sat, 14 Jun 2008 14:03:23 +0000 (14:03 +0000)
svn changeset:4874/svn branch:trunk

src/com/itmill/toolkit/ui/AbstractField.java

index 72b85468cb7936b30a67d413c4d3a21f11f6e0fb..86fdb2bb4dbd359b0d4ef87f219a1554716debf8 100644 (file)
@@ -595,10 +595,6 @@ public abstract class AbstractField extends AbstractComponent implements Field,
             if (isEmpty()) {
                 return false;
             }
-        } else {
-            if (isEmpty()) {
-                return true;
-            }
         }
 
         if (validators == null) {
@@ -626,10 +622,6 @@ public abstract class AbstractField extends AbstractComponent implements Field,
             if (isEmpty()) {
                 throw new Validator.InvalidValueException("");
             }
-        } else {
-            if (isEmpty()) {
-                return;
-            }
         }
 
         // If there is no validator, there can not be any errors