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.
@author Nicklas
@version 2.0