Exclusive checkbox taglib ver. 1.2

    JSP custom taglib for UI development. This taglib lets you add a special behavior for your checkboxes. Only one checkbox can be checked at a time. It is useful when only one of choices can be chosen, similar to a radio button. But the use of checkboxes lets you to uncheck something what is not possible with radio buttons. For example:

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

<input type="checkbox" name="opt1" value="must_have" id="c1">Must have
<input type="checkbox" name="opt1" value="must_not_have" id="c2">Must not have

<e:ExclusiveCheckbox id1="c1" id2="c2"/>

and you will get some like this :

Must have Must not have

Tags are:


implements exclusive checkbox effect. Attributes are:

1) id1 Describes a DHTML id for the first checkbox.
2) id2 Describes a DHTML id for the second checkbox.
3) cond Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true.

for downloading:

Library: exchecktag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: