From 2b8fa058c4b3af6f09e6e8eb880081b5b1098ba2 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 17 Nov 2011 08:27:04 +0000 Subject: #7062 ComboBox shows required indicator when in read only svn changeset:22023/svn branch:6.7 --- src/com/vaadin/ui/Select.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/vaadin/ui/Select.java') 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); } -- cgit v1.2.3