2.10.0: 2009-02-24

Package net.sf.basedb.clients.web.taglib.tab

This package is a taglib that can be used on JSP pages to build a tabbed dialog control.

See:
          Description

Class Summary
Tab This tag defines the title and contents of a single tab inside a tab control.
TabControl This is the main tag for the tab control.
 

Package net.sf.basedb.clients.web.taglib.tab Description

This package is a taglib that can be used on JSP pages to build a tabbed dialog control. It consists of a wrapper TabControl tag, which can contain one or more Tab tags. The Tab tags define the tab title and contents of each tab. JavaScript is used to switch between the tabs. Tab controls cannot be nested, ie. you cannot place a second tab control inside one of the tabs of the first.

Example:

<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
<script language="JavaScript" src="tab.js"></script>
<link rel="StyleSheet" href="tab.css"></link>

<t:tabcontrol>
   <t:tab title="Contact information">
      Contact information goes here...
   </t:tab>
   <t:tab title="Groups">
      Group membership information goes here...
   </t:tab>
   <t:tab title="Roles">
      Role membership information goes here...
   </t:tab>
</t:tabcontrol>

Installation:
You must of course place the two class files in the classpath of your application server. For Tomcat a good place is in the folder: /WEB-INF/classes/net/sf/basedb/clients/web/taglib/tab/.

You must also copy the tab.tld, tab.js and tab.css files to the application server. The tab.tld is an XML file with definitions of the taglib classes. In Tomcat this should be placed in the /WEB-INF/ directory. The tab.js and tab.css files contains javascript code and style sheet definitions. You should place those files somewhere on your application server and make sure they are linked correctly. Alternatively, you may copy the contents of these files into your own javascript and style sheet files.

Version:
2.0
Author:
Nicklas

2.10.0: 2009-02-24