summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2011-11-17 08:27:04 +0000
committerArtur Signell <artur.signell@itmill.com>2011-11-17 08:27:04 +0000
commit2b8fa058c4b3af6f09e6e8eb880081b5b1098ba2 (patch)
treebbc289dd137052cdec1706d89907371cd54e2e26 /src/com/vaadin/ui
parent47adbf4e327896791d7adfd7e8c270d524d754ac (diff)
downloadvaadin-framework-2b8fa058c4b3af6f09e6e8eb880081b5b1098ba2.tar.gz
vaadin-framework-2b8fa058c4b3af6f09e6e8eb880081b5b1098ba2.zip
#7062 ComboBox shows required indicator when in read only
svn changeset:22023/svn branch:6.7
Diffstat (limited to 'src/com/vaadin/ui')
-rw-r--r--src/com/vaadin/ui/Select.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/vaadin/ui/Select.java b/src/com/vaadin/ui/Select.java
index 7b6fc07e5b..439efdb864 100644
--- a/src/com/vaadin/ui/Select.java
+++ b/src/com/vaadin/ui/Select.java
@@ -148,7 +148,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering,
}
// Adds the required attribute
- if (isRequired()) {
+ if (!isReadOnly() && isRequired()) {
target.addAttribute("required", true);
}