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:
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
option Body tag defines an option (element) for the button. Parameters are: 1) style Optional parameter. Defines a CSS style for this element
for downloading: Library: sidebartag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|