]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #2170, postal code in example is now required field
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 10 Nov 2008 14:06:23 +0000 (14:06 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 10 Nov 2008 14:06:23 +0000 (14:06 +0000)
svn changeset:5851/svn branch:trunk

src/com/itmill/toolkit/demo/featurebrowser/FormExample.java

index 30765c7164c1ece69f3590d37792d96d7a3cf62c..a599f579ec7617c8eeded1354081186a32068e0c 100644 (file)
@@ -95,6 +95,7 @@ public class FormExample extends CustomComponent {
             getField("name").setRequired(true);
             getField("name").setRequiredError("Name is missing");
             getField("streetAddress").setRequired(true); // No error message
+            getField("postalCode").setRequired(true); // No error message
             replaceWithSelect("city", cities, cities).setNewItemsAllowed(true);
 
             // Set the form to act immediately on user input. This is