]> source.dussan.org Git - vaadin-framework.git/commitdiff
#7062 ComboBox shows required indicator when in read only
authorArtur Signell <artur.signell@itmill.com>
Thu, 17 Nov 2011 08:27:04 +0000 (08:27 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 17 Nov 2011 08:27:04 +0000 (08:27 +0000)
svn changeset:22023/svn branch:6.7

src/com/vaadin/ui/Select.java

index 7b6fc07e5bb6928766c77c001feb5b63cd8cb141..439efdb864bc82d1bc166bfd7e2c27980d9674fb 100644 (file)
@@ -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);
         }