summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/com/vaadin/data/Binder.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java
index 7632f2b09b..96865b13e8 100644
--- a/server/src/main/java/com/vaadin/data/Binder.java
+++ b/server/src/main/java/com/vaadin/data/Binder.java
@@ -487,11 +487,12 @@ public class Binder<BEAN> implements Serializable {
/**
* Sets the field to be required. This means two things:
* <ol>
- * <li>the field value is validated for not being empty</li>
- * <li>the required indicator will be displayed if the value of this
- * field at validation time is equal to what
- * {@link HasValue#getEmptyValue()} returns</li>
+ * <li>the required indicator will be displayed for this field</li>
+ * <li>the field value is validated for not being empty, i.e. that the
+ * field's value is not equal to what {@link HasValue#getEmptyValue()}
+ * returns</li>
* </ol>
+ * <p>
* For localizing the error message, use
* {@link #asRequired(ErrorMessageProvider)}.
*
@@ -510,10 +511,10 @@ public class Binder<BEAN> implements Serializable {
/**
* Sets the field to be required. This means two things:
* <ol>
- * <li>the field value is validated for not being empty</li>
- * <li>the required indicator will be displayed if the value of this
- * field at validation time is equal to what
- * {@link HasValue#getEmptyValue()} returns</li>
+ * <li>the required indicator will be displayed for this field</li>
+ * <li>the field value is validated for not being empty, i.e. that the
+ * field's value is not equal to what {@link HasValue#getEmptyValue()}
+ * returns</li>
* </ol>
*
* @see HasValue#setRequiredIndicatorVisible(boolean)