Select file list box taglib ver. 1.3


    Custom JSP taglib for UI development. This taglib creates a multi column list box that lets you select files from the given directory. For example:
 


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

<sf:SelectFile style="background:white" directory="/" name="test" listWidth="250px"/>

and you will get some like this
 

You have to use this tag inside of HTML form (or form taglib from Coldtags suite).

Note: the evaluation version supports up to 5 files per list.

Tags are:

SelectFile

Body tag provides a list box with files. Parameters are:

1) name Describes a name for your input tag
2) id Optional parameter. Describes a DHTML id for the selected option.
3) className Optional parameter. Describes a CSS class for the selected option
4) style Optional parameter. Describes your own CSS style.
5) columns Optional parameter. Describes how many columns must be in your list. Default value is 2.
6) directory Describes a directory
7) ext Optional parameter. Describes a commas separated list of extensions for your files
8) listBorderWidth Optional parameter. Describes a width for the border in your list. Default value is 1px.
9) listBorderColor Optional parameter. Describes a color for list's border. Default value is black.
10) listWidth Optional parameter. Describes a width for your list. Default value is 150px.
11) listHeight Optional parameter. Describes a height for your list. Default value is 80px.
12) currentBackground Optional parameter. Describes a color for the current element. Default value is yellow.
13) selectedBackground Optional parameter. Describes a color for the selected element. Default value is black.
14) optionsClassName Optional parameter. Describes a CSS class for list's elements.
15) optionsStyle Optional parameter. Describes a CSS style for list's elements..
16) disabled Optional parameter. Possible values are true or false. If this value is true than list box is in the read-only mode. Default value is false.
17) onChange Optional parameter. Describes your own JavaScript code for the selection event
18) autoSubmit Optional parameter. Possible values are true or false. If this value is true than any selection will submit the form automatically. Default value is false.

for downloading:

Library: fselecttag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: