webuijsf
Tag legend


Use the webuijsf:legend tag to display a legend, typically at the top of a page.
The webuijsf:legend tag has one facet:
   legendImage - this allows the developer to place their own image and/or text in the legend.

HTML Elements and Layout

A legend consists of an icon/image followed by explanatory text describing the icon/image.

Client Side Javascript Functions

None.

Examples

Example 1: An example showing the default (indicates required field) legend:
<webuijsf:legend id="legend1" />

Example 2: An example showing a custom icon, text, styles:
 <webuijsf:legend id="legend2" text="Critical Alarms" 
     style="position: absolute; left:100px; color:red; font-weight:bold"/>
   <f:facet name="legendImage">
     webuijsf:image id="alarmimage" icon="ALARM_CRITICAL_SMALL" alt="Critical Alarm"/>
   </f:facet>
 </webuijsf:legend>
 
 



Tag Information
Tag Classcom.sun.webui.jsf.component.LegendTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
bindingfalsefalsejava.lang.String A ValueExpression that resolves to the UIComponent that corresponds to this tag. This binding allows the Java bean that contains the UIComponent to manipulate the UIComponent, its properties, and its children.
styleClassfalsefalsejava.lang.String

CSS style class(es) to be applied to the outermost HTML element when this component is rendered.

textfalsefalsejava.lang.String

The explanatory text that is displayed in the legend. If not specified, the required field legend text is displayed.

positionfalsefalsejava.lang.String

Specifies the position of the legend. Valid values are: "right" (the default) and "left".

visiblefalsefalsejava.lang.String

Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.

stylefalsefalsejava.lang.String

CSS style(s) to be applied to the outermost HTML element when this component is rendered.

renderedfalsefalsejava.lang.String Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page. If set to false, the rendered HTML page does not include the HTML for the component. If the component is not rendered, it is also not processed on any subsequent form submission.
idfalsetruejava.lang.StringNo Description

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.