|
2.14.2: 2010-02-22 | ||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
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. |
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.
|
2.14.2: 2010-02-22 | ||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |