Side Bar taglib ver. 1.2

    Custom JSP tag helps you implement side bar control in XP style.

For example:
 


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

<s:SideBar width="100px">
<s:button value="First" menuStyle="background-color:#00ffff" opened="true">
  <s:option><i>Option 1.1</i></s:option>
  <s:option>Option 1.2</s:option>
</s:button>

<s:button value="Second" menuStyle="background-color:#ffffff">
  <s:option>Option 2.1</s:option>
  <s:option>Option 2.2</s:option>
</s:button>

<s:button value="Disabled" disabled="true"/>

<s:button value="Last" title="last button" menuStyle="background-color:#ccffff">
  <s:option style="text-align:center">
   <img src="HomeOn.gif"><br><a href="http://www.servletsuite.com" target="_blank">Coldbeans</a>
  </s:option>
  <s:option style="text-align:center"><br>Option 3.2</s:option>
</s:button>

</s:SideBar>

and you will get some like this:

  • Option 1.1
  • Option 1.2

Note: the evaluation version supports up to 3 options per button

Tags are:

SideBar

Body tag defines a side bar control in XP style. Parameters are:

1) width Describes a width for you control

button

Body tag describes a button for your control. Parameters are:

1) value Describes a value (label, caption) for your button
2) title Optional parameter. Describes a tooltip
3) className Optional parameter. Describes a CSS class for this button
4) menuClassName Optional parameter. Describes a CSS class for options
5) menuStyle Optional parameter. Describes a CSS style for options. Default value is background-color:#d3d3d3
6) opened Optional parameter. Possible values are true or false. If this value is true than the appropriate menu will be opened. Default value is false.
7) disabled Optional parameter. Possible values are true or false. If this value is true than this button will be disabled. Default value is false.
8) cond Optional parameter. Defines a boolean value tag's behavior depends on. Default value is true (add button)

option

Body tag defines an option (element) for the button. Parameters are:

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

for downloading:

    Library: sidebartag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: