Package net.sf.basedb.clients.web.taglib.menu


package net.sf.basedb.clients.web.taglib.menu
This package is a taglib that can be used on JSP pages to build a simple drop-down menu system with unlimited levels. It consists of a Menu that can contain one or more Menuitem:s or Submenu:s. There is also a Menuseparator:s tag for inserting dividers into the menu.

Example:
menu1

<%@ taglib prefix="m" uri="/WEB-INF/menu.tld" %>
<script language="JavaScript" src="menu.js"></script>
<link rel="StyleSheet" href="menu.css"></link>

<m:menu 
   id="menubar" 
   type="horizontal" 
   clazz="menu_horizontal" 
   style="top: 10; left: 0; width: 100%;"
   >
   <submenu subid="file" title="File" />
   <submenu subid="help" title="Help" />
</m:menu>

<m:menu 
   id="file" 
   style="display: none;"
   >
   <m:menuitem title="Open" onclick="location='open.jsp'" />
   <m:menuitem title="Save" onclick="location='save.jsp'" />
   <m:menuseparator />
   <m:menuitem title="Exit" href="location='exit.jsp'" />
</m:menu>

<m:menu
   id="help" 
   style="display: none;"
   >
   <m:menuitem title="Contents..." onclick="openHelp()" />
   <m:menuseparator />
   <m:menuitem title="About..." onClick="showAbout()" />
</m:menu>

Version:
2.0
Author:
Nicklas