Renders the component value as text, optionally wrapping in a span element if I18N attributes, CSS
styles or style classes are specified.
If you are using h:outputText (or an equivalent inline EL expression) within a script or style block the value is NOT escaped by default.
By default, the rendererType property must be set to "jakarta.faces.Text". This value can
be changed by calling the setRendererType() method.
| Modifier and Type | Class and Description |
|---|---|
| protected static enum | HtmlOutputText.PropertyKeys
The property keys. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | COMPONENT_TYPE
Hides jakarta. The standard component type for this component. |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the property valueContents: 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.
Return the value of the |
| public String | Returns: the property valueContents: Code describing the language used in the generated markup for this component.
Return the value of the |
| public String | Returns: the property valueContents: 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.
Return the value of the |
| public String | Returns: the property valueContents: CSS style(s) to be applied when this component is rendered.
Return the value of the |
| public String | Returns: the property valueContents: 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.
Return the value of the |
| public String | Returns: the property valueContents: Advisory title information about markup elements generated for this component.
Return the value of the |
| private void | |
| public boolean | Returns: the property valueContents: Flag indicating that characters that are sensitive in HTML and XML markup must be escaped. This flag is set to "true" by default.
Return the value of the |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| COMPONENT_TYPE | back to summary |
|---|---|
| public static final String COMPONENT_TYPE Hides jakarta. The standard component type for this component. | |
| OPTIMIZED_PACKAGE | back to summary |
|---|---|
| private static final String OPTIMIZED_PACKAGE | |
| HtmlOutputText | back to summary |
|---|---|
| public HtmlOutputText() | |
| getDir | back to summary |
|---|---|
| public String getDir()
Return the value of the
| |
| getLang | back to summary |
|---|---|
| public String getLang()
Return the value of the
| |
| getRole | back to summary |
|---|---|
| public String getRole()
Return the value of the
| |
| getStyle | back to summary |
|---|---|
| public String getStyle()
Return the value of the
| |
| getStyleClass | back to summary |
|---|---|
| public String getStyleClass()
Return the value of the
| |
| getTitle | back to summary |
|---|---|
| public String getTitle()
Return the value of the
| |
| handleAttribute | back to summary |
|---|---|
| private void handleAttribute(String name, Object value) | |
| isEscape | back to summary |
|---|---|
| public boolean isEscape()
Return the value of the
| |
| setDir | back to summary |
|---|---|
| public void setDir(String dir)
Set the value of the
| |
| setEscape | back to summary |
|---|---|
| public void setEscape(boolean escape)
Set the value of the
| |
| setLang | back to summary |
|---|---|
| public void setLang(String lang)
Set the value of the
| |
| setRole | back to summary |
|---|---|
| public void setRole(String role)
Set the value of the
| |
| setStyle | back to summary |
|---|---|
| public void setStyle(String style)
Set the value of the
| |
| setStyleClass | back to summary |
|---|---|
| public void setStyleClass(String styleClass)
Set the value of the
| |
| setTitle | back to summary |
|---|---|
| public void setTitle(String title)
Set the value of the
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final HtmlOutputText. | |
| public static final HtmlOutputText. | |
| public static final HtmlOutputText. | |
| public static final HtmlOutputText. | |
| public static final HtmlOutputText. | |
| public static final HtmlOutputText. | |
| public static final HtmlOutputText. | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static HtmlOutputText. | |
| public static HtmlOutputText. |
| dir | back to summary |
|---|---|
| public static final HtmlOutputText. | |
| escape | back to summary |
|---|---|
| public static final HtmlOutputText. | |
| lang | back to summary |
|---|---|
| public static final HtmlOutputText. | |
| role | back to summary |
|---|---|
| public static final HtmlOutputText. | |
| style | back to summary |
|---|---|
| public static final HtmlOutputText. | |
| styleClass | back to summary |
|---|---|
| public static final HtmlOutputText. | |
| title | back to summary |
|---|---|
| public static final HtmlOutputText. | |
| toString | back to summary |
|---|---|
| pack-priv String toString | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys(String toString) | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. 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. | |
| valueOf | back to summary |
|---|---|
| public static HtmlOutputText. | |
| values | back to summary |
|---|---|
| public static HtmlOutputText. | |