Custom listbox taglib ver. 1.3

    Custom JSP taglib for UI development. This taglib lets you implement custom HTML listboxes with images, links, input elements etc. The following example provides a listbox with images, checkboxes and links:
 


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

<cl:customlist width="180px" height="80px">
  <cl:element><input type="checkbox"> checkbox</cl:element>
  <cl:element><a href="http://www.servletsuite.com" target="_blank">Link</a></cl:element>
  <cl:element style="margin-top:6px"><img src="HomeOn.gif"> first Image element</cl:element>
  <cl:element><img src="HomeOff.gif"> second element</cl:element>
</cl:customlist>

and you will get the following picture:

  • checkbox
  • Link
  • first Image element
  • second element

Tags are:

customlist

Body tag provides a listbox with the user-defined elements. Parameters are:

1) width Describes a width for your box.
2) height Describes a height for your box.
3) background Optional parameter. Describes a background color for your listbox.
4) borderWidth Optional parameter. Describes a width for the border. Default value is 1px.
5) borderColor Optional parameter. Describes a color for the border. Default value is black.
6) id Optional parameter describes a DHTML id for this element.
7) className Optional parameter describes CSS class name for this listbox.
8) style Optional parameter describes your own CSS style for this element.

element

Body tag descibes an element in your listbox. Parameters are:

1) className Optional parameter describes CSS class name for this element.
2) style Optional parameter describes your own CSS style for this element.
3) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (add element).

Note: the evaluation version supports up to 5 elements.

for downloading:

Library: customlisttag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: