Author: ldywicki Date: Fri Aug 12 13:01:51 2011 New Revision: 1157084 URL: http://svn.apache.org/viewvc?rev=1157084&view=rev Log: Fix missing sidebar component when Page don't have subpages
Modified: karaf/sandbox/pieber/karaf-webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/BasePage.java Modified: karaf/sandbox/pieber/karaf-webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/BasePage.java URL: http://svn.apache.org/viewvc/karaf/sandbox/pieber/karaf-webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/BasePage.java?rev=1157084&r1=1157083&r2=1157084&view=diff ============================================================================== --- karaf/sandbox/pieber/karaf-webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/BasePage.java (original) +++ karaf/sandbox/pieber/karaf-webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/BasePage.java Fri Aug 12 13:01:51 2011 @@ -23,6 +23,8 @@ public class BasePage extends WebPage { List<Class> subPages = getSubPages(); if (subPages != null && subPages.size() > 0) { add(new SidebarPanel("sidebar", getClass(), subPages)); + } else { + add(new Label("sidebar").setRenderBodyOnly(true)); } // List tabPanels = new ArrayList();