Vertical list taglib ver. 1.2

    Custom JSP taglib. This taglib provides UI control for creating menu in your applications. Sure, you have seen such a code in many web sites: it is a vertical menu usually located at the left side of the screen. For example:
 


<%@ taglib uri="taglib.tld" prefix="v" %>

<v:verticalList id="m1" width="150px" height="400px"
      linkBackground="#444" linkHoverBackground="#AAA"
      linkColor="#FFC" linkHoverColor="#412"
      style="left:5px;font:16px Verdana, sans-serif">

  <v:element>
   <v:setLink><a href="/servlets.htm" target="_blank">JSOS</a></v:setLink>
  </v:element>

  <v:element>
   <v:setLink><a href="/jsp.htm" target="_blank">JSP</a></v:setLink>
  </v:element>

  <v:element>
   <v:setLink><a href="/jmx" target="_blank">JMX</a></v:setLink>
  </v:element>

</v:verticalList>

and you will get some like this:

JSOS JSP JMX

 
 
 
 
 

Here you have to provide a list of links as well as output attributes for your links: color and background. Also you may define own color and/or background for using during the hover. And parameter style lets you provide own settings for fonts, margins etc.

Also you can add a help (tooltip, popup) text for your links. For example:
 


<%@ taglib uri="taglib.tld" prefix="v" %>

<v:verticalList id="m2" width="150px" height="400px"
      linkBackground="#444" linkHoverBackground="#AAA"
      linkColor="#FFC" linkHoverColor="#412"
      style="left:5px;font:16px Verdana, sans-serif"
      helpStyle="left:5px;color:blue;top:100px;width:150px">

  <v:element>
   <v:setLink><a href="/servlets.htm" target="_blank">JSOS</a></v:setLink>
   <v:setHelp>JSOS is a largest (70+ components) set of Java servlets and filters</v:setHelp>
  </v:element>

  <v:element>
   <v:setLink><a href="/jsp.htm" target="_blank">JSP</a></v:setLink>
   <v:setHelp>It is a largest (165+ components) set of custom JSP tags</v:setHelp>
  </v:element>

  <v:element>
   <v:setLink><a href="/jmx" target="_blank">JMX</a></v:setLink>
   <v:setHelp>It is a set of JMX components.</v:setHelp>
  </v:element>

</v:verticalList>

and you will get this menu (try to move mouse over the items):

JSOSJSOS is a largest (70+ components) set of Java servlets and filters Coldtags suiteIt is a largest (165+ components) set of custom JSP tags JMXIt is a set of JMX components.

 
 
 
 
 
 
 
 
 
 

Here the parameter helpStyle describes a position for your popup (top:100px).

Tags are:

verticalList

Body tag lets you define a vertical list of links (menu). Parameters are:

1) id Describes a DHTML (XHTML) id.
2) width Describes a width for your control.
3) height Describes a height for your control.
4) linkColor Optional parameter. Describes a color for your links.
5) linkBackground Optional parameter. Describes a background for your links.
6) linkHoverColor Optional parameter. Describes a color for your links during the hover.
7) linkHoverBackground Optional parameter. Describes a background for your links during the hover.
8) style Optional parameter. Describes a CSS style for your menu.
9) helpStyle Optional parameter. Describes a CSS style for your popups.

element

Body tag lets you define menu's element. Parameters are: none

setLink

Body tag lets you define a hyperlink for menu's element. Parameters are:

setHelp

Body tag lets you define a popup (help) text for menu's element. Parameters are: none

for downloading:

Library: vlisttag.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.