소스 검색

Removed Validators from FormLayout example.

feature/eventbus
Sami Ekblad 7 년 전
부모
커밋
1b81af3959
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0
    2
      documentation/layout/layout-formlayout.asciidoc

+ 0
- 2
documentation/layout/layout-formlayout.asciidoc 파일 보기

@@ -29,7 +29,6 @@ FormLayout form = new FormLayout();
TextField tf1 = new TextField("Name");
tf1.setIcon(FontAwesome.USER);
tf1.setRequired(true);
tf1.addValidator(new NullValidator("Must be given", false));
form.addComponent(tf1);

TextField tf2 = new TextField("Street address");
@@ -38,7 +37,6 @@ form.addComponent(tf2);

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


Loading…
취소
저장