Toggled panel taglib ver. 1.4

    Custom JSP taglib lets you describe a group of controls that will be visible or invisible depends on some check box state (radio button, link). For example:
 


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

<t:ToggledPanel name="a" title="Extra info">
  Name: <input type="text"> Phone: <input type="text">
</t:ToggledPanel>

and you will get this (try to check/uncheck this control):

Extra info

You can use hyperlink or radio button as well:
 


<t:ToggledPanel name="a2" type="link" title="Extra info">
  Name: <input type="text"> Phone: <input type="text">
</t:ToggledPanel>

and you will get this:

Extra info

Tags are:

ToggledPanel

Body tag lets you define a group of controls with switched visibility. Tags body describes a collection of HTML (JSP) tags.

1) name Optional parameter. Describes a name for your switch control. Default value is toggledpanel.
2) type Optional parameter. Describes a type for your switch. Possible values are checkbox, link or radio. Default value is checkbox.
3) title Optional parameter. Describes a title (caption) for your control. By default it is empty.
4) visible Optional parameter. Describes an initial state for your panel. Possible values are true or false. Default value is false

for downloading:

Library: toggledpaneltag.jar    Description: taglib.tld

© Coldbeans      Comments?

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