[richfaces-svn-commits] JBoss Rich Faces SVN: r253 - trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Apr 3 10:50:11 EDT 2007
Author: a.izobov
Date: 2007-04-03 10:50:11 -0400 (Tue, 03 Apr 2007)
New Revision: 253
Modified:
trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java
Log:
do not render submenu for disabled menuGroup
Modified: trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java
===================================================================
--- trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java 2007-04-03 14:30:02 UTC (rev 252)
+++ trunk/richfaces/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java 2007-04-03 14:50:11 UTC (rev 253)
@@ -62,7 +62,7 @@
for (Iterator iter = flatListOfNodes.iterator(); iter.hasNext();) {
UIMenuGroup node = (UIMenuGroup) iter.next();
- processLayer(context, node, width);
+ if (node.isRendered() && !node.isDisabled()) processLayer(context, node, width);
}
}
More information about the richfaces-svn-commits
mailing list