public class UIValueHolder extends javax.faces.component.html.HtmlInputText implements ResettableComponent
Can be bound to a value as an input component, or not submit the value and still expose it to the context at build time as well as at render time.
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
protected Object |
submittedValue
The submittedValue value of this
UIInput component. |
protected Boolean |
submitValue |
protected String |
var |
| Constructor and Description |
|---|
UIValueHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(javax.faces.event.FacesEvent event) |
void |
encodeBegin(javax.faces.context.FacesContext context) |
void |
encodeChildren(javax.faces.context.FacesContext context) |
void |
encodeEnd(javax.faces.context.FacesContext context) |
protected AliasVariableMapper |
getAliasVariableMapper(javax.faces.context.FacesContext ctx) |
String |
getFaceletId() |
String |
getFamily() |
String |
getRendererType() |
boolean |
getRendersChildren() |
Object |
getSubmittedValue() |
Boolean |
getSubmitValue() |
Object |
getValueToExpose() |
String |
getVar() |
boolean |
invokeOnComponent(javax.faces.context.FacesContext context,
String clientId,
javax.faces.component.ContextCallback callback) |
NuxeoValueHolderBean |
lookupBean(javax.faces.context.FacesContext ctx) |
protected void |
processComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.event.PhaseId phaseId) |
void |
processDecodes(javax.faces.context.FacesContext context) |
protected void |
processFacetsAndChildren(javax.faces.context.FacesContext context,
javax.faces.event.PhaseId phaseId) |
protected void |
processFacetsAndChildrenWithVariable(javax.faces.context.FacesContext context,
javax.faces.event.PhaseId phaseId) |
void |
processUpdates(javax.faces.context.FacesContext context) |
void |
processValidators(javax.faces.context.FacesContext context) |
void |
queueEvent(javax.faces.event.FacesEvent event) |
void |
resetCachedModel()
Resets the value holder local values
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context)
Saves the locally set literal values kept on the component (from standard tags attributes) and since 5.6, also
saves the submitted value as
UIInput.saveState(FacesContext) does not do it (see NXP-8898). |
protected void |
saveToBean(Object value) |
void |
setSubmittedValue(Object submittedValue) |
void |
setSubmitValue(Boolean submitValue) |
void |
setValue(Object value) |
void |
setVar(String var) |
boolean |
visitTree(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback) |
getAccesskey, getAlt, getAutocomplete, getDefaultEventName, getDir, getEventNames, getLabel, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getSize, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setAutocomplete, setDir, setDisabled, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setSize, setStyle, setStyleClass, setTabindex, setTitleaddValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setValid, setValidator, setValidatorMessage, setValueChangeListener, updateModel, validate, validateValuegetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpressionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
protected transient Object submittedValue
The submittedValue value of this UIInput component.
protected Boolean submitValue
public UIValueHolder()
public String getRendererType()
getRendererType in class javax.faces.component.UIComponentBasepublic boolean getRendersChildren()
getRendersChildren in class javax.faces.component.UIComponentBasepublic void broadcast(javax.faces.event.FacesEvent event)
broadcast in class javax.faces.component.UIComponentBasepublic void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class javax.faces.component.UIComponentBasepublic boolean invokeOnComponent(javax.faces.context.FacesContext context, String clientId, javax.faces.component.ContextCallback callback) throws javax.faces.FacesException
invokeOnComponent in class javax.faces.component.UIComponentBasejavax.faces.FacesExceptionpublic void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionpublic void encodeChildren(javax.faces.context.FacesContext context) throws IOException
encodeChildren in class javax.faces.component.UIComponentBaseIOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context) throws IOException
encodeEnd in class javax.faces.component.UIComponentBaseIOExceptionpublic void processDecodes(javax.faces.context.FacesContext context)
processDecodes in class javax.faces.component.UIInputpublic void processValidators(javax.faces.context.FacesContext context)
processValidators in class javax.faces.component.UIInputpublic void processUpdates(javax.faces.context.FacesContext context)
processUpdates in class javax.faces.component.UIInputprotected final void processFacetsAndChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
protected final void processFacetsAndChildrenWithVariable(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
protected final void processComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.event.PhaseId phaseId)
public Boolean getSubmitValue()
public void setSubmitValue(Boolean submitValue)
public Object getValueToExpose()
protected AliasVariableMapper getAliasVariableMapper(javax.faces.context.FacesContext ctx)
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIInputpublic Object saveState(javax.faces.context.FacesContext context)
UIInput.saveState(FacesContext) does not do it (see NXP-8898).saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIInputpublic void resetCachedModel()
resetCachedModel in interface ResettableComponentpublic boolean visitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
visitTree in class javax.faces.component.UIComponentpublic String getFaceletId()
public NuxeoValueHolderBean lookupBean(javax.faces.context.FacesContext ctx)
protected void saveToBean(Object value)
public void setSubmittedValue(Object submittedValue)
setSubmittedValue in interface javax.faces.component.EditableValueHoldersetSubmittedValue in class javax.faces.component.UIInputpublic Object getSubmittedValue()
getSubmittedValue in interface javax.faces.component.EditableValueHoldergetSubmittedValue in class javax.faces.component.UIInputCopyright © 2019 Nuxeo. All rights reserved.