]> source.dussan.org Git - vaadin-framework.git/commit
Add Bindinding.setRequired
authorPekka Hyvönen <pekka@vaadin.com>
Tue, 1 Nov 2016 09:53:44 +0000 (11:53 +0200)
committerPekka Hyvönen <pekka@vaadin.com>
Wed, 2 Nov 2016 07:51:19 +0000 (09:51 +0200)
commit2cb106ce095edd5fc8a72b38a856c76ece05684e
treea900d77d330e4d419727c3486c253868341be676
parente4d132f4cb84a7aafdf70b5e5ca2121b66c87bfa
Add Bindinding.setRequired

Shorthand for making field show required indicator and validating against empty.
Removes obsolete NotNullValidator and NotEmptyValidator. Latter is still used
in some tests, that why it is still in test packages.

Fixes vaadin/framework8-issues#29

Change-Id: Ib116739a20a0bbd1b1460423ee36ed2752c5496a
server/src/main/java/com/vaadin/data/Binder.java
server/src/main/java/com/vaadin/data/validator/NotEmptyValidator.java [deleted file]
server/src/main/java/com/vaadin/data/validator/NotNullValidator.java [deleted file]
server/src/test/java/com/vaadin/data/BinderTest.java
server/src/test/java/com/vaadin/data/validator/BeanValidatorTest.java
server/src/test/java/com/vaadin/data/validator/NotEmptyValidator.java [new file with mode: 0644]
server/src/test/java/com/vaadin/data/validator/NotNullValidatorTest.java [deleted file]