Top Description Methods
jakarta.faces.component

public Interface ValueHolder

Known Direct Subinterfaces
jakarta.faces.component.EditableValueHolder
Known Direct Implementers
jakarta.faces.component.UIOutput
Imports
jakarta.el.ValueExpression, jakarta.faces.convert.Converter

ValueHolder is an interface that may be implemented by any concrete UIComponent that wishes to support a local value, as well as access data in the model tier via a value expression, and support conversion between String and the model tier data's native data type.

Method Summary

Modifier and TypeMethod and Description
public Converter<T>

Returns:

the converter.
getConverter
()

Return the Converter (if any) that is registered for this UIComponent.

public Object

Returns:

the local value.
getLocalValue
()

Return the local value of this UIComponent (if any), without evaluating any associated ValueExpression.

public Object

Returns:

the value.
getValue
()

Gets the value of this UIComponent.

public void
setConverter(Converter<T>
New Converter (or null)
converter
)

Set the Converter (if any) that is registered for this UIComponent.

public void
setValue(Object
The new local value
value
)

Set the value of this UIComponent (if any).

Method Detail

getConverterback to summary
public Converter<T> getConverter()

Return the Converter (if any) that is registered for this UIComponent.

Returns:Converter<T>

the converter.

getLocalValueback to summary
public Object getLocalValue()

Return the local value of this UIComponent (if any), without evaluating any associated ValueExpression.

Returns:Object

the local value.

getValueback to summary
public Object getValue()

Gets the value of this UIComponent. If validation failed, as indicated by jakarta.faces.context.FacesContext#isValidationFailed returning true, always return the local value. Otherwise, first, consult the local value property of this component. If non-null return it. If null, see if we have a ValueExpression for the value property. If so, return the result of evaluating the property, otherwise return null.

Returns:Object

the value.

setConverterback to summary
public void setConverter(Converter<T> converter)

Set the Converter (if any) that is registered for this UIComponent.

Parameters
converter:Converter<T>

New Converter (or null)

setValueback to summary
public void setValue(Object value)

Set the value of this UIComponent (if any).

Parameters
value:Object

The new local value