Open Patterns Dialog Layout
Tag multicontrol


Custom tag to generate all HTML code necessary to display dialog control consisting from multiple controls from which only one is dislayed at a time. This allows user to enter data using different type of control based on the data type, but the data can be still identified with the same label and context help. Currently this control supports only edit field and combo box.

Example:
<dialog:multicontrol onchangecombo="processCombo();" onkeyupedit="processEdit();"/>


Tag Information
Tag Classorg.opensubsystems.patterns.dialoglayout.www.MultiControlTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsetruejava.lang.StringId of the multicontrol to construct. This has to be the same id as is the id of the label and the context help associated with this control. The easiest way is to do not specify the id for individual elements of the dialog row and instead specify id of the dialog row or a column of a dialog row that contains these elements.
cssclassfalsetruejava.lang.StringCSS class for the multi control generated by this tag. This is different than the inputcssclass, which sets the style of the input control itself. This value sets the style of the block element containing the input control and the button.
sizefalsetruejava.lang.StringSize of the input tag used to limit viewable area.
maxlengthfalsetruejava.lang.StringNo Description
inputcssclassfalsetruejava.lang.StringNo Description
combocontrolfalsetruejava.lang.StringFlag specifying if a combobox control has to be generated or not as part of this multi control. Default value is true. If combobox control should be shown then this attribute should say true or 1.
editcontrolfalsetruejava.lang.StringFlag specifying if an edit field control has to be generated as part of this multi control. Default value is true. If edit control should be shown then this attribute should say true or 1.
onchangecombofalsetruejava.lang.StringJavaScript code to execute when the selection changes in combobox.
onkeyupeditfalsetruejava.lang.StringJavaScript code to execute on key up event of edit field.

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.