Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to display just the child menu items in appfuse
    primarykey
    data
    text
    <p>(I think this is coming from appfuse, anyway. I'm not always clear on what's part of which framework still.)</p> <p>I've got this in my <code>menu-config.xml</code>:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;MenuConfig&gt; &lt;Displayers&gt; &lt;Displayer name="Velocity" type="net.sf.navigator.displayer.VelocityMenuDisplayer"/&gt; &lt;/Displayers&gt; &lt;Menus&gt; &lt;Menu name="MainMenu" title="mainMenu.title" page="/mainmenu"&gt; &lt;Item name="Foo" title="menu.foo" page="/foo"/&gt; &lt;Item name="Bar" title="menu.bar" page="/bar"/&gt; &lt;Item name="Baz" title="menu.baz" page="/baz"/&gt; &lt;/Menu&gt; &lt;Menu name="OtherMenu" title="otherMenu.title" page="/othermenu"&gt; &lt;Item name="Squee" title="menu.squee" page="/squee"/&gt; &lt;Item name="Lorem" title="menu.lorem" page="/lorem"/&gt; &lt;/Menu&gt; &lt;Menu name="UserMenu" title="menu.user" description="User Menu" page="mainmenu.editprofile" roles="ROLE_ADMIN,ROLE_USER"/&gt; &lt;Menu name="Logout" title="user.logout" page="/logout" roles="ROLE_ADMIN,ROLE_USER"/&gt; &lt;/Menus&gt; &lt;/MenuConfig&gt; </code></pre> <p>For my main navigation, I've got this in my menu.jsp:</p> <pre><code>&lt;%@ include file="/common/taglibs.jsp"%&gt; &lt;menu:useMenuDisplayer name="Velocity" config="cssHorizontalMenu.vm" permissions="rolesAdapter"&gt; &lt;ul class="tabs menuList"&gt; &lt;menu:displayMenu name="MainMenu"/&gt; &lt;/ul&gt; &lt;/menu:useMenuDisplayer&gt; </code></pre> <p>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.:</p> <pre><code>&lt;ul&gt; &lt;li&gt;Foo&lt;/li&gt; &lt;li&gt;Bar&lt;/li&gt; &lt;li&gt;Baz&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>not</p> <pre><code>&lt;ul&gt; &lt;li&gt;Main Menu&lt;/li&gt; &lt;li&gt; &lt;ul&gt; &lt;li&gt;Foo&lt;/li&gt; &lt;li&gt;Bar&lt;/li&gt; &lt;li&gt;Baz&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Is there some way to do that?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload