UIOutput is a UIComponent that has a
value, optionally retrieved from a model tier bean via a value expression, that is displayed to the user. The user
cannot directly modify the rendered value; it is for display purposes only.
During the Render Response phase of the request processing lifecycle, the current value of this component must be converted to a String (if it is not already), according to the following rules:
null, and is not already a String, locate a
Converter (if any) to use for the conversion, as follows:
null and a Converter was located, call its
getAsString() method to perform the conversion.null but no Converter was located, call toString()
on the current value to perform the conversion.
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 |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | COMPONENT_FAMILY
The standard component family for this component. |
| public static final String | COMPONENT_TYPE
The standard component type for this component. |
| private Converter | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearInitialState()
Overrides jakarta. Implements jakarta.
For each of the attached objects on this instance that implement |
| public Converter | getConverter()
Implements jakarta.
Return the |
| public String | getFamily()
Implements abstract jakarta. Return the identifier of the component family to which this component belongs. |
| public Object | getLocalValue()
Implements jakarta.
Return the local value of this |
| public Object | |
| public void | markInitialState()
Overrides jakarta. Implements jakarta.
In addition to the actions taken in |
| public void | |
| public void | restoreState(FacesContext
the Faces context. context, Object the state. state)Overrides jakarta. Implements jakarta. Perform any processing required to restore the state from the entries in the state Object. |
| public Object | saveState(FacesContext
the Faces context. context)Overrides jakarta. Implements jakarta.
Gets the state of the instance as a |
| public void | setConverter(Converter<T>
New converter)Converter (or null)Implements jakarta.
Set the |
| public void | setValue(Object
The new local value value)Implements jakarta.
Set the value of this |
| COMPONENT_FAMILY | back to summary |
|---|---|
| public static final String COMPONENT_FAMILY The standard component family for this component. | |
| COMPONENT_TYPE | back to summary |
|---|---|
| public static final String COMPONENT_TYPE The standard component type for this component. | |
| converter | back to summary |
|---|---|
| private Converter<?> converter | |
| FORCE_FULL_CONVERTER_STATE | back to summary |
|---|---|
| private static final String FORCE_FULL_CONVERTER_STATE | |
| UIOutput | back to summary |
|---|---|
| public UIOutput()
Create a new | |
| clearInitialState | back to summary |
|---|---|
| public void clearInitialState() Overrides jakarta. Implements jakarta. Doc from jakarta.
For each of the attached objects on this instance that implement
| |
| getConverter | back to summary |
|---|---|
| public Converter Implements jakarta. Doc from jakarta.
Return the | |
| getFamily | back to summary |
|---|---|
| public String getFamily() Implements abstract jakarta. Doc from jakarta.
Return the identifier of the component family to which this component belongs. This identifier, in conjunction with
the value of the | |
| getLocalValue | back to summary |
|---|---|
| public Object getLocalValue() Implements jakarta. Doc from jakarta.
Return the local value of this | |
| getValue | back to summary |
|---|---|
| public Object getValue() Implements jakarta. Return the value property.
| |
| markInitialState | back to summary |
|---|---|
| public void markInitialState() Overrides jakarta. Implements jakarta.
In addition to the actions taken in
| |
| resetValue | back to summary |
|---|---|
| public void resetValue() Convenience method to reset this component's value to the un-initialized state.
| |
| restoreState | back to summary |
|---|---|
| public void restoreState(FacesContext context, Object state) Overrides jakarta. Implements jakarta. Doc from jakarta. Perform any processing required to restore the state from the entries in the state Object.
If the class that implements this interface has references to instances that also implement StateHolder (such as a
If the
| |
| saveState | back to summary |
|---|---|
| public Object saveState(FacesContext context) Overrides jakarta. Implements jakarta. Doc from jakarta.
Gets the state of the instance as a
If the class that implements this interface has references to instances that implement StateHolder (such as a
This method must not alter the state of the implementing object. In other words, after executing this code:
The return from this method must be
| |
| setConverter | back to summary |
|---|---|
| public void setConverter(Converter<T> converter) Implements jakarta. Doc from jakarta.
Set the | |
| setValue | back to summary |
|---|---|
| public void setValue(Object value) Implements jakarta. Doc from jakarta.
Set the value of this | |
| Modifier and Type | Field and Description |
|---|---|
| public static final UIOutput. | |
| public static final UIOutput. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static UIOutput. | |
| public static UIOutput. |
| converter | back to summary |
|---|---|
| public static final UIOutput. | |
| value | back to summary |
|---|---|
| public static final UIOutput. | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys() | |
| valueOf | back to summary |
|---|---|
| public static UIOutput. | |
| values | back to summary |
|---|---|
| public static UIOutput. | |