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", " ");
                        }
                }
 


Reply via email to