You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2011/09/13 18:56:12 UTC
svn commit: r1170235 -
/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java
Author: ivaynberg
Date: Tue Sep 13 16:56:12 2011
New Revision: 1170235
URL: http://svn.apache.org/viewvc?rev=1170235&view=rev
Log:
Issue: WICKET-4048
Modified:
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java
Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java?rev=1170235&r1=1170234&r2=1170235&view=diff
==============================================================================
--- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java (original)
+++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java Tue Sep 13 16:56:12 2011
@@ -189,10 +189,11 @@ public class AutoLabelResolver implement
{
tag.append("class", "error", " ");
}
- if (!fc.isEnabledInHierarchy())
- {
- tag.append("class", "disabled", " ");
- }
+ }
+
+ if (!component.isEnabledInHierarchy())
+ {
+ tag.append("class", "disabled", " ");
}
}