You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2010/10/20 07:47:21 UTC
svn commit: r1024529 -
/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java
Author: bommel
Date: Wed Oct 20 05:47:21 2010
New Revision: 1024529
URL: http://svn.apache.org/viewvc?rev=1024529&view=rev
Log:
(TOBAGO-925) MenuBarRenderer should consider the rendered attribute of the children
(TOBAGO-924) tc:menuSeparator still displayed despite rendered="false"
Modified:
myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java?rev=1024529&r1=1024528&r2=1024529&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/MenuBarRenderer.java Wed Oct 20 05:47:21 2010
@@ -316,6 +316,9 @@ public class MenuBarRenderer extends Lay
throws IOException {
for (Object o : component.getChildren()) {
UIComponent entry = (UIComponent) o;
+ if (!entry.isRendered()) {
+ continue;
+ }
if (entry instanceof UICommand) {
addMenuEntry(sb, var, facesContext, accKeyFunctions, (UICommand) entry);
} else if (entry instanceof UIMenuSeparator) {