aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/tests')
-rw-r--r--src/com/itmill/toolkit/tests/book/FormExample.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/tests/book/FormExample.java b/src/com/itmill/toolkit/tests/book/FormExample.java
index 9db5466db9..2125888004 100644
--- a/src/com/itmill/toolkit/tests/book/FormExample.java
+++ b/src/com/itmill/toolkit/tests/book/FormExample.java
@@ -109,7 +109,6 @@ public class FormExample extends CustomComponent {
return new TextField("Street Address");
if (pid.equals("postalCode")) {
- // Postal code that must be 5 digits (10000-99999).
TextField field = new TextField("Postal Code");
field.setColumns(5);
Validator postalCodeValidator = new Validator() {
@@ -157,7 +156,7 @@ public class FormExample extends CustomComponent {
final Form form = new Form();
// Set form caption and description texts.
- form.setCaption("Contsgsdgact Information");
+ form.setCaption("Contact Information");
form.setDescription("Please enter valid name and address. Fields marked with * are required.");
// Use custom field factory to create the fields in the form.
@@ -202,8 +201,6 @@ public class FormExample extends CustomComponent {
// Add Commit and Discard controls to the form.
ExpandLayout footer = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
- form.setValidationVisibleOnCommit(false);
- form.setValidationVisible(false);
// The Commit button calls form.commit().
Button commit = new Button("Commit", form, "commit");