Spin taglib ver. 2.0


    Custom JSP taglib. Tag spin lets you implement a well know for GUI programmers spin control. For example:
 


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

<s:spin name="x" edit="false" initValue="5" minValue="1" maxValue="10"/>

and you will get some like this:

Of course, you have to place this control within some HTML form (or within our form tag).

Tags are:

spin

Custom tag for spin control. Attributes are:

1) name describes a name for this element
2) id Optional attribute. Describes a CSS/DHTML ID
3) style Optional parameter. Describes your own CSS style
4) className Optional parameter. Describes your own CSS class
5) initValue Optional parameter. Describes an initial value. Default value is 1.
6) minValue Optional parameter. Describes a minimal value. By default is not defined.
7) maxValue Optional parameter. Describes a maximal value. By default is not defined.
8) step Optional parameter. Describes a step for increment/decrement. Default value is 1.
9) edit Optional parameter. Enables/disables direct changes for control. Default value is true (enabled).
10) border Optional parameter. Describes a border drawing policy (draw/do not draw). Default value is true
11) imageUp Optional parameter. Describes an URL for top picture. Default value is up.jpg (see downloading)
12) imageDown Optional parameter. Describes an URL for bottom picture. Default value is down.jpg (see downloading)

for downloading:

Library: spintag.jar    Description: taglib.tld
Default images: up.jpg   down.jpg

© Coldbeans      Comments?

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

Also in Coldtags: