package org.apache.karaf.webconsole.core;

import java.util.Collections;
import java.util.List;

import org.apache.karaf.webconsole.core.internal.SidebarPanel;
import org.apache.wicket.Page;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.util.ListModel;

public class SidebarPage extends BasePage {

    private Panel sidebar;

    public SidebarPage() {
        ListModel<Class<? extends Page>> listModel = new ListModel<Class<? extends Page>>(getSubPages());

        sidebar = new SidebarPanel("sidebar", getClass(), listModel);
        add(sidebar);
    }

    public Panel getSidebar() {
        return sidebar;
    }

    protected List<Class<? extends Page>> getSubPages() {
        return Collections.emptyList();
    }

}

package org.apache.karaf.webconsole.core;

import java.util.Collections;
import java.util.List;

import org.apache.karaf.webconsole.core.internal.SidebarPanel;
import org.apache.wicket.Page;
import org.apache.wicket.model.util.ListModel;

public class SidebarPage extends BasePage {

    public SidebarPage() {
        ListModel<Class<? extends Page>> listModel = new ListModel<Class<? extends Page>>(getSubPages());

        add(new SidebarPanel("sidebar", getClass(), listModel));
    }

    protected List<Class<? extends Page>> getSubPages() {
        return Collections.emptyList();
    }

}

--- 
+++ 
@@ -5,14 +5,22 @@
 
 import org.apache.karaf.webconsole.core.internal.SidebarPanel;
 import org.apache.wicket.Page;
+import org.apache.wicket.markup.html.panel.Panel;
 import org.apache.wicket.model.util.ListModel;
 
 public class SidebarPage extends BasePage {
 
+    private Panel sidebar;
+
     public SidebarPage() {
         ListModel<Class<? extends Page>> listModel = new ListModel<Class<? extends Page>>(getSubPages());
 
-        add(new SidebarPanel("sidebar", getClass(), listModel));
+        sidebar = new SidebarPanel("sidebar", getClass(), listModel);
+        add(sidebar);
+    }
+
+    public Panel getSidebar() {
+        return sidebar;
     }
 
     protected List<Class<? extends Page>> getSubPages() {
Make sidebar accessible for extensions

git-svn-id: e2c3038d01fb1e63d9a6e7e9a258c7088cd26e08@1159239 13f79535-47bb-0310-9956-ffa450edef68
