tags:

views:

48

answers:

0

(I think this is coming from appfuse, anyway. I'm not always clear on what's part of which framework still.)

I've got this in my menu-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<MenuConfig>
    <Displayers>
        <Displayer name="Velocity" type="net.sf.navigator.displayer.VelocityMenuDisplayer"/>
    </Displayers>
    <Menus>
        <Menu name="MainMenu" title="mainMenu.title" page="/mainmenu">
            <Item name="Foo" title="menu.foo" page="/foo"/>
            <Item name="Bar" title="menu.bar" page="/bar"/>
            <Item name="Baz" title="menu.baz" page="/baz"/>
        </Menu>
        <Menu name="OtherMenu" title="otherMenu.title" page="/othermenu">
            <Item name="Squee" title="menu.squee" page="/squee"/>
            <Item name="Lorem" title="menu.lorem" page="/lorem"/>
        </Menu>
        <Menu name="UserMenu" title="menu.user" description="User Menu" page="mainmenu.editprofile" roles="ROLE_ADMIN,ROLE_USER"/>
        <Menu name="Logout" title="user.logout" page="/logout" roles="ROLE_ADMIN,ROLE_USER"/>
    </Menus>
</MenuConfig>

For my main navigation, I've got this in my menu.jsp:

<%@ include file="/common/taglibs.jsp"%>

<menu:useMenuDisplayer name="Velocity" config="cssHorizontalMenu.vm" permissions="rolesAdapter">
<ul class="tabs menuList">
    <menu:displayMenu name="MainMenu"/>
</ul>
</menu:useMenuDisplayer>

That pretty much works, except I'm getting both the top level and child items of the main menu in my output. I actually only want the child items, i.e.:

<ul>
  <li>Foo</li>
  <li>Bar</li>
  <li>Baz</li>
</ul>

not

<ul>
   <li>Main Menu</li>
   <li>
    <ul>
      <li>Foo</li>
      <li>Bar</li>
      <li>Baz</li>
    </ul>
  </li>
</ul>

Is there some way to do that?