Top Description Inners Fields Constructors Methods
jakarta.faces.component.html

public Class HtmlBody

extends UIOutput
implements ClientBehaviorHolder
Class Inheritance
All Implemented Interfaces
jakarta.faces.component.behavior.ClientBehaviorHolder
Static Imports
jakarta.faces.component.html.HtmlComponentUtils.handleAttribute

NONE

By default, the rendererType property must be set to "jakarta.faces.Body". This value can be changed by calling the setRendererType() method.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static enum
HtmlBody.PropertyKeys

The property keys.

Field Summary

Modifier and TypeField and Description
public static final String
COMPONENT_TYPE

Hides jakarta.faces.component.UIOutput.COMPONENT_TYPE.

The standard component type for this component.

private static final Collection<String>
Inherited from jakarta.faces.component.UIOutput:
COMPONENT_FAMILY

Constructor Summary

AccessConstructor and Description
public
HtmlBody()

Default constructor setting the renderer type.

Method Summary

Modifier and TypeMethod and Description
public String
getDefaultEventName()

Overrides jakarta.faces.component.UIComponentBase.getDefaultEventName.

Implements jakarta.faces.component.behavior.ClientBehaviorHolder.getDefaultEventName.

Returns the default event name for this ClientBehaviorHolder implementation.

public String

Returns:

the property value

Contents: Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left). These attributes are case sensitive when rendering to XHTML, so care must be taken to have the correct case.

getDir
()

Return the value of the dir property.

public Collection<String>
getEventNames()

Overrides jakarta.faces.component.UIComponentBase.getEventNames.

Implements jakarta.faces.component.behavior.ClientBehaviorHolder.getEventNames.

Returns a non-null, unmodifiable Collection containing the names of the logical events supported by the component implementing this interface.

public String

Returns:

the property value

Contents: Code describing the language used in the generated markup for this component.

getLang
()

Return the value of the lang property.

public String

Returns:

the property value

Contents: Javascript code executed when a pointer button is clicked over this element.

getOnclick
()

Return the value of the onclick property.

public String

Returns:

the property value

Contents: Javascript code executed when a pointer button is double clicked over this element.

getOndblclick
()

Return the value of the ondblclick property.

public String

Returns:

the property value

Contents: Javascript code executed when a key is pressed down over this element.

getOnkeydown
()

Return the value of the onkeydown property.

public String

Returns:

the property value

Contents: Javascript code executed when a key is pressed and released over this element.

getOnkeypress
()

Return the value of the onkeypress property.

public String

Returns:

the property value

Contents: Javascript code executed when a key is released over this element.

getOnkeyup
()

Return the value of the onkeyup property.

public String

Returns:

the property value
getOnload
()

Return the value of the onload property.

public String

Returns:

the property value

Contents: Javascript code executed when a pointer button is pressed down over this element.

getOnmousedown
()

Return the value of the onmousedown property.

public String

Returns:

the property value

Contents: Javascript code executed when a pointer button is moved within this element.

getOnmousemove
()

Return the value of the onmousemove property.

public String

Returns:

the property value

Contents: Javascript code executed when a pointer button is moved away from this element.

getOnmouseout
()

Return the value of the onmouseout property.

public String

Returns:

the property value

Contents: Javascript code executed when a pointer button is moved onto this element.

getOnmouseover
()

Return the value of the onmouseover property.

public String

Returns:

the property value

Contents: Javascript code executed when a pointer button is released over this element.

getOnmouseup
()

Return the value of the onmouseup property.

public String

Returns:

the property value
getOnunload
()

Return the value of the onunload property.

public String

Returns:

the property value

Contents:

Per the WAI-ARIA spec and its relationship to HTML5 (Section title ARIA Role Attriubute), every HTML element may have a "role" attribute whose value must be passed through unmodified on the element on which it is declared in the final rendered markup. The attribute, if specified, must have a value that is a string literal that is, or an EL Expression that evaluates to, a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to.

It is the page author's responsibility to ensure that the user agent is capable of correctly interpreting the value of this attribute.

getRole
()

Return the value of the role property.

public String

Returns:

the property value

Contents: CSS style(s) to be applied when this component is rendered.

getStyle
()

Return the value of the style property.

public String

Returns:

the property value

Contents: Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.

getStyleClass
()

Return the value of the styleClass property.

public String

Returns:

the property value

Contents: Advisory title information about markup elements generated for this component.

getTitle
()

Return the value of the title property.

public String

Returns:

the property value

Contents:

An XML Namespace to be passed through to the rendered element
getXmlns
()

Return the value of the xmlns property.

public void
setDir(String
the new property value
dir
)

Set the value of the dir property.

public void
setLang(String
the new property value
lang
)

Set the value of the lang property.

public void
setOnclick(String
the new property value
onclick
)

Set the value of the onclick property.

public void
setOndblclick(String
the new property value
ondblclick
)

Set the value of the ondblclick property.

public void
setOnkeydown(String
the new property value
onkeydown
)

Set the value of the onkeydown property.

public void
setOnkeypress(String
the new property value
onkeypress
)

Set the value of the onkeypress property.

public void
setOnkeyup(String
the new property value
onkeyup
)

Set the value of the onkeyup property.

public void
setOnload(String
the new property value
onload
)

Set the value of the onload property.

public void
setOnmousedown(String
the new property value
onmousedown
)

Set the value of the onmousedown property.

public void
setOnmousemove(String
the new property value
onmousemove
)

Set the value of the onmousemove property.

public void
setOnmouseout(String
the new property value
onmouseout
)

Set the value of the onmouseout property.

public void
setOnmouseover(String
the new property value
onmouseover
)

Set the value of the onmouseover property.

public void
setOnmouseup(String
the new property value
onmouseup
)

Set the value of the onmouseup property.

public void
setOnunload(String
the new property value
onunload
)

Set the value of the onunload property.

public void
setRole(String
the new property value
role
)

Set the value of the role property.

public void
setStyle(String
the new property value
style
)

Set the value of the style property.

public void
setStyleClass(String
the new property value
styleClass
)

Set the value of the styleClass property.

public void
setTitle(String
the new property value
title
)

Set the value of the title property.

public void
setXmlns(String
the new property value
xmlns
)

Set the value of the xmlns property.

Inherited from jakarta.faces.component.UIOutput:
clearInitialStategetConvertergetFamilygetLocalValuegetValuemarkInitialStateresetValuerestoreStatesaveStatesetConvertersetValue

Field Detail

COMPONENT_TYPEback to summary
public static final String COMPONENT_TYPE

Hides jakarta.faces.component.UIOutput.COMPONENT_TYPE.

The standard component type for this component.

EVENT_NAMESback to summary
private static final Collection<String> EVENT_NAMES

Constructor Detail

HtmlBodyback to summary
public HtmlBody()

Default constructor setting the renderer type.

Method Detail

getDefaultEventNameback to summary
public String getDefaultEventName()

Overrides jakarta.faces.component.UIComponentBase.getDefaultEventName.

Implements jakarta.faces.component.behavior.ClientBehaviorHolder.getDefaultEventName.

Doc from jakarta.faces.component.behavior.ClientBehaviorHolder.getDefaultEventName.

Returns the default event name for this ClientBehaviorHolder implementation. This must be one of the event names returned by getEventNames or null if the component does not have a default event.

Returns:String

the default event name.

Annotations
@Override
getDirback to summary
public String getDir()

Return the value of the dir property.

Returns:String

the property value

Contents: Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left). These attributes are case sensitive when rendering to XHTML, so care must be taken to have the correct case.

getEventNamesback to summary
public Collection<String> getEventNames()

Overrides jakarta.faces.component.UIComponentBase.getEventNames.

Implements jakarta.faces.component.behavior.ClientBehaviorHolder.getEventNames.

Doc from jakarta.faces.component.behavior.ClientBehaviorHolder.getEventNames.

Returns a non-null, unmodifiable Collection containing the names of the logical events supported by the component implementing this interface.

Returns:Collection<String>

an unmodifiable collection of event names.

Annotations
@Override
getLangback to summary
public String getLang()

Return the value of the lang property.

Returns:String

the property value

Contents: Code describing the language used in the generated markup for this component.

getOnclickback to summary
public String getOnclick()

Return the value of the onclick property.

Returns:String

the property value

Contents: Javascript code executed when a pointer button is clicked over this element.

getOndblclickback to summary
public String getOndblclick()

Return the value of the ondblclick property.

Returns:String

the property value

Contents: Javascript code executed when a pointer button is double clicked over this element.

getOnkeydownback to summary
public String getOnkeydown()

Return the value of the onkeydown property.

Returns:String

the property value

Contents: Javascript code executed when a key is pressed down over this element.

getOnkeypressback to summary
public String getOnkeypress()

Return the value of the onkeypress property.

Returns:String

the property value

Contents: Javascript code executed when a key is pressed and released over this element.

getOnkeyupback to summary
public String getOnkeyup()

Return the value of the onkeyup property.

Returns:String

the property value

Contents: Javascript code executed when a key is released over this element.

getOnloadback to summary
public String getOnload()

Return the value of the onload property.

Returns:String

the property value

getOnmousedownback to summary
public String getOnmousedown()

Return the value of the onmousedown property.

Returns:String

the property value

Contents: Javascript code executed when a pointer button is pressed down over this element.

getOnmousemoveback to summary
public String getOnmousemove()

Return the value of the onmousemove property.

Returns:String

the property value

Contents: Javascript code executed when a pointer button is moved within this element.

getOnmouseoutback to summary
public String getOnmouseout()

Return the value of the onmouseout property.

Returns:String

the property value

Contents: Javascript code executed when a pointer button is moved away from this element.

getOnmouseoverback to summary
public String getOnmouseover()

Return the value of the onmouseover property.

Returns:String

the property value

Contents: Javascript code executed when a pointer button is moved onto this element.

getOnmouseupback to summary
public String getOnmouseup()

Return the value of the onmouseup property.

Returns:String

the property value

Contents: Javascript code executed when a pointer button is released over this element.

getOnunloadback to summary
public String getOnunload()

Return the value of the onunload property.

Returns:String

the property value

getRoleback to summary
public String getRole()

Return the value of the role property.

Returns:String

the property value

Contents:

Per the WAI-ARIA spec and its relationship to HTML5 (Section title ARIA Role Attriubute), every HTML element may have a "role" attribute whose value must be passed through unmodified on the element on which it is declared in the final rendered markup. The attribute, if specified, must have a value that is a string literal that is, or an EL Expression that evaluates to, a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to.

It is the page author's responsibility to ensure that the user agent is capable of correctly interpreting the value of this attribute.

getStyleback to summary
public String getStyle()

Return the value of the style property.

Returns:String

the property value

Contents: CSS style(s) to be applied when this component is rendered.

getStyleClassback to summary
public String getStyleClass()

Return the value of the styleClass property.

Returns:String

the property value

Contents: Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.

getTitleback to summary
public String getTitle()

Return the value of the title property.

Returns:String

the property value

Contents: Advisory title information about markup elements generated for this component.

getXmlnsback to summary
public String getXmlns()

Return the value of the xmlns property.

Returns:String

the property value

Contents:

An XML Namespace to be passed through to the rendered element
setDirback to summary
public void setDir(String dir)

Set the value of the dir property.

Parameters
dir:String

the new property value

setLangback to summary
public void setLang(String lang)

Set the value of the lang property.

Parameters
lang:String

the new property value

setOnclickback to summary
public void setOnclick(String onclick)

Set the value of the onclick property.

Parameters
onclick:String

the new property value

setOndblclickback to summary
public void setOndblclick(String ondblclick)

Set the value of the ondblclick property.

Parameters
ondblclick:String

the new property value

setOnkeydownback to summary
public void setOnkeydown(String onkeydown)

Set the value of the onkeydown property.

Parameters
onkeydown:String

the new property value

setOnkeypressback to summary
public void setOnkeypress(String onkeypress)

Set the value of the onkeypress property.

Parameters
onkeypress:String

the new property value

setOnkeyupback to summary
public void setOnkeyup(String onkeyup)

Set the value of the onkeyup property.

Parameters
onkeyup:String

the new property value

setOnloadback to summary
public void setOnload(String onload)

Set the value of the onload property.

Parameters
onload:String

the new property value

setOnmousedownback to summary
public void setOnmousedown(String onmousedown)

Set the value of the onmousedown property.

Parameters
onmousedown:String

the new property value

setOnmousemoveback to summary
public void setOnmousemove(String onmousemove)

Set the value of the onmousemove property.

Parameters
onmousemove:String

the new property value

setOnmouseoutback to summary
public void setOnmouseout(String onmouseout)

Set the value of the onmouseout property.

Parameters
onmouseout:String

the new property value

setOnmouseoverback to summary
public void setOnmouseover(String onmouseover)

Set the value of the onmouseover property.

Parameters
onmouseover:String

the new property value

setOnmouseupback to summary
public void setOnmouseup(String onmouseup)

Set the value of the onmouseup property.

Parameters
onmouseup:String

the new property value

setOnunloadback to summary
public void setOnunload(String onunload)

Set the value of the onunload property.

Parameters
onunload:String

the new property value

setRoleback to summary
public void setRole(String role)

Set the value of the role property.

Parameters
role:String

the new property value

setStyleback to summary
public void setStyle(String style)

Set the value of the style property.

Parameters
style:String

the new property value

setStyleClassback to summary
public void setStyleClass(String styleClass)

Set the value of the styleClass property.

Parameters
styleClass:String

the new property value

setTitleback to summary
public void setTitle(String title)

Set the value of the title property.

Parameters
title:String

the new property value

setXmlnsback to summary
public void setXmlns(String xmlns)

Set the value of the xmlns property.

Parameters
xmlns:String

the new property value

jakarta.faces.component.html back to summary

protected final Enum HtmlBody.PropertyKeys

extends Enum<HtmlBody.PropertyKeys>
Class Inheritance

The property keys.

Field Summary

Modifier and TypeField and Description
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
public static final HtmlBody.PropertyKeys
pack-priv String
public static final HtmlBody.PropertyKeys

Constructor Summary

AccessConstructor and Description
private
PropertyKeys(String toString)

private

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static HtmlBody.PropertyKeys
public static HtmlBody.PropertyKeys[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

dirback to summary
public static final HtmlBody.PropertyKeys dir
langback to summary
public static final HtmlBody.PropertyKeys lang
onclickback to summary
public static final HtmlBody.PropertyKeys onclick
ondblclickback to summary
public static final HtmlBody.PropertyKeys ondblclick
onkeydownback to summary
public static final HtmlBody.PropertyKeys onkeydown
onkeypressback to summary
public static final HtmlBody.PropertyKeys onkeypress
onkeyupback to summary
public static final HtmlBody.PropertyKeys onkeyup
onloadback to summary
public static final HtmlBody.PropertyKeys onload
onmousedownback to summary
public static final HtmlBody.PropertyKeys onmousedown
onmousemoveback to summary
public static final HtmlBody.PropertyKeys onmousemove
onmouseoutback to summary
public static final HtmlBody.PropertyKeys onmouseout
onmouseoverback to summary
public static final HtmlBody.PropertyKeys onmouseover
onmouseupback to summary
public static final HtmlBody.PropertyKeys onmouseup
onunloadback to summary
public static final HtmlBody.PropertyKeys onunload
roleback to summary
public static final HtmlBody.PropertyKeys role
styleback to summary
public static final HtmlBody.PropertyKeys style
styleClassback to summary
public static final HtmlBody.PropertyKeys styleClass
titleback to summary
public static final HtmlBody.PropertyKeys title
toStringback to summary
pack-priv String toString
xmlnsback to summary
public static final HtmlBody.PropertyKeys xmlns

Constructor Detail

PropertyKeysback to summary
private PropertyKeys(String toString)
PropertyKeysback to summary
private PropertyKeys()

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static HtmlBody.PropertyKeys valueOf(String name)
valuesback to summary
public static HtmlBody.PropertyKeys[] values()