Menu Portlet
Overview

This portlet display the navigation menu of the web-site
Classes
Portlet
net.sf.jportlet.portlets.menu.MenuPortlet
Action Listener
net.sf.jportlet.portlets.menu.MenuActionListener
Message Listener
None
Init Parameters
menu.url/menu.path
Location of the menu descriptor.
  • menu.url: The value of this parameter looks like http://foo.com/menu.xml
  • menu.path: The value of this parameter looks like /a/directory/menu.xml. The descriptor is found using the method PortletContext.getResourceAsStream().
You must specify only one of those 2 parameters. The menu descriptor is a XML file that looks like this:
<?xml version="1.0"?>
<menus>
    <menu name="General">
        <item id="home"  icon="/home.png" name="Home" />
        <item id="forum" icon="/forum.png" name="Forums" />
    </menu>
    <menu name="Misc">
        <item id="logout"  name="Logout" />
    </menu>
</menus> 
xsl.<markup>.url/xsl.<markup>.path
Stylesheet to use for rendering the menu descriptor (<markup>=html, wml etc.).
  • xsl.<markup>.url: The value of this parameter looks like http://foo.com/menu.xsl
  • xsl.<markup>.path: The value of this parameter looks like /a/directory/menu.xsl. The descriptor is found using the method PortletContext.getResourceAsStream().
You can specify only one of those 2 parameters. If not, the portlet will use its default XSL file.
Markups (Modes) Any (Any)
Languages Any
CSS styles None
Webflow The id attribute of each <item> element is the returnCode the the view action.
The webflow descriptor may look like this:
<webflow>
    <action name="view">
        <return code="home">/index.jsp</return>
        <return code="forum">/forum.jsp</return>
        <return code="logout">/portlet/login/mode/view/state/maximized</return>
    </action>
</webflow>
SQL script None