Open Patterns Tabbed Dialog
Tag js


Custom tag to generate JavaScript required to interact with the tabbed dialog. You should place this tag at the location in your JSP page where you need to generate the specific JavaScript code.

Example:
<tab:js id="user" function="onload" param1="messagearea" param2="contentarea" param3="default" param4="false"/>


Tag Information
Tag Classorg.opensubsystems.patterns.tabbeddialog.www.TabbedDialogJSTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idtruetruejava.lang.StringId of the tabbed dialog for which the JavaScript is generated.
functiontruetruejava.lang.StringType of javascript to generate. Currently supported functions are "onload", "onresize" and "ondialoghelp".
param1falsetruejava.lang.StringParameter 1 to pass to the function if it allows it. If function is "onload" or "onresize", then the value should contain the id of an area to display messages related to the content of the tabbed dialog. If function is "ondialoghelp", then the value should contain the id of the help tab to display when user clicks the help button.
param2falsetruejava.lang.StringParameter 2 to pass to the function if it allows it. If function is "onload" or "onresize", then the value should contain the id of a div, which the tab should completely fill. This is usually content area (containing all the content) of the window/page. If function is "ondialoghelp", then the value is JavaScript to execute when the tabs are switched For any string withing the javascript you have to use ' (single quote).
param3falsetruejava.lang.StringParameter 3 to pass to the function if it allows it. If function is "onload" or "onresize" then the value should be name of a JavaScript variable containing height of the content area if this is "default" then no size adjustment will be made to the tabbed dialog and the dialog will be left to be resized by the browser otherwise the dialog will be stretched to fill the whole content area. If function is "ondialoghelp", then this parameter is ignored.
param4falsetruejava.lang.StringParameter 4 to pass to the function if it allows it. If function is "onload" or "onresize" then this should be a boolean value indicating if the content of the tab can scroll or not. If function is "ondialoghelp", then this parameter is ignored.
param5falsetruejava.lang.StringParameter 5 to pass to the function if it allows it. If function is "onload" then this should be a boolean value indicating if all the tabs should have the same height or not. The default value is false. If true then all tabs will have equal height, which will be the height specified either by application layout or by the height of the first tab.
cacheasfalsetruejava.lang.StringStore the generated javascript in pache cache under token specified as value for this attribute instead of generating it to the page. Later on in tags, that allow to specify JavaScript to call (such as dialog:imagebutton using attribute onclick) you can fetch the generated JavaScript by using "cache:[value of cacheas].

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.