Browse Source

Removed Validators from FormLayout example.

feature/eventbus
Sami Ekblad 8 years ago
parent
commit
1b81af3959
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      documentation/layout/layout-formlayout.asciidoc

+ 0
- 2
documentation/layout/layout-formlayout.asciidoc View File

TextField tf1 = new TextField("Name"); TextField tf1 = new TextField("Name");
tf1.setIcon(FontAwesome.USER); tf1.setIcon(FontAwesome.USER);
tf1.setRequired(true); tf1.setRequired(true);
tf1.addValidator(new NullValidator("Must be given", false));
form.addComponent(tf1); form.addComponent(tf1);


TextField tf2 = new TextField("Street address"); TextField tf2 = new TextField("Street address");


TextField tf3 = new TextField("Postal code"); TextField tf3 = new TextField("Postal code");
tf3.setIcon(FontAwesome.ENVELOPE); tf3.setIcon(FontAwesome.ENVELOPE);
tf3.addValidator(new IntegerRangeValidator("Doh!", 1, 99999));
form.addComponent(tf3); form.addComponent(tf3);
---- ----



Loading…
Cancel
Save