-
- All Known Subinterfaces:
- EditableValueHolder
- All Known Implementing Classes:
- HtmlBody, HtmlDoctype, HtmlHead, HtmlInputFile, HtmlInputHidden, HtmlInputSecret, HtmlInputText, HtmlInputTextarea, HtmlOutcomeTargetButton, HtmlOutcomeTargetLink, HtmlOutputFormat, HtmlOutputLabel, HtmlOutputLink, HtmlOutputText, HtmlSelectBooleanCheckbox, HtmlSelectManyCheckbox, HtmlSelectManyListbox, HtmlSelectManyMenu, HtmlSelectOneListbox, HtmlSelectOneMenu, HtmlSelectOneRadio, UIInput, UIOutcomeTarget, UIOutput, UISelectBoolean, UISelectMany, UISelectOne, UIViewParameter
public interface ValueHolder
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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Converter
getConverter()
Return theConverter
(if any) that is registered for thisUIComponent
.Object
getLocalValue()
Return the local value of thisUIComponent
(if any), without evaluating any associatedValueExpression
.Object
getValue()
Gets the value of thisUIComponent
.void
setConverter(Converter converter)
Set theConverter
(if any) that is registered for thisUIComponent
.void
setValue(Object value)
Set the value of thisUIComponent
(if any).
-
-
-
Method Detail
-
getLocalValue
Object getLocalValue()
Return the local value of this
UIComponent
(if any), without evaluating any associatedValueExpression
.
-
getValue
Object getValue()
Gets the value of this
UIComponent
. If validation failed, as indicated byFacesContext.isValidationFailed()
returningtrue
, always return the local value. Otherwise, first, consult the local value property of this component. If non-null
return it. Ifnull
, see if we have aValueExpression
for thevalue
property. If so, return the result of evaluating the property, otherwise returnnull
. Note that because the specification forUIComponent.setValueBinding(java.lang.String, javax.faces.el.ValueBinding)
requires a call through toUIComponent.setValueExpression(java.lang.String, javax.el.ValueExpression)
, legacy tags will continue to work.
-
setValue
void setValue(Object value)
Set the value of this
UIComponent
(if any).- Parameters:
value
- The new local value
-
getConverter
Converter getConverter()
Return the
Converter
(if any) that is registered for thisUIComponent
.
-
setConverter
void setConverter(Converter converter)
Set the
Converter
(if any) that is registered for thisUIComponent
.- Parameters:
converter
- NewConverter
(ornull
)
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 20:53:33 Cette version de la page est en cache (à la date du 21/08/2025 20:53:33) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 14/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/faces/component/valueholder.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.