From: Marc Englund Date: Tue, 23 Sep 2008 09:21:55 +0000 (+0000) Subject: Added requestRepaint() to two setters. Fixes #2105 X-Git-Tag: 6.7.0.beta1~4116 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ac0cafb3441d505c868e7d5b187f46e05431d4f;p=vaadin-framework.git Added requestRepaint() to two setters. Fixes #2105 svn changeset:5484/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/AbstractSelect.java b/src/com/itmill/toolkit/ui/AbstractSelect.java index 68460748dd..bad8f863da 100644 --- a/src/com/itmill/toolkit/ui/AbstractSelect.java +++ b/src/com/itmill/toolkit/ui/AbstractSelect.java @@ -1243,10 +1243,10 @@ public abstract class AbstractSelect extends AbstractField implements if ((propertyId != null) && Resource.class.isAssignableFrom(getType(propertyId))) { itemIconPropertyId = propertyId; - requestRepaint(); } else { itemIconPropertyId = null; } + requestRepaint(); } /** @@ -1500,7 +1500,10 @@ public abstract class AbstractSelect extends AbstractField implements * @see #isNullSelectionAllowed() */ public void setNullSelectionAllowed(boolean nullSelectionAllowed) { - this.nullSelectionAllowed = nullSelectionAllowed; + if (nullSelectionAllowed != this.nullSelectionAllowed) { + this.nullSelectionAllowed = nullSelectionAllowed; + requestRepaint(); + } } /**