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, setTitle
addValidator, 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, validateValue
getConverter, getLocalValue, setConverter
addClientBehavior, 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, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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.UIComponentBase
public boolean getRendersChildren()
getRendersChildren
in class javax.faces.component.UIComponentBase
public void broadcast(javax.faces.event.FacesEvent event)
broadcast
in class javax.faces.component.UIComponentBase
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent
in class javax.faces.component.UIComponentBase
public boolean invokeOnComponent(javax.faces.context.FacesContext context, String clientId, javax.faces.component.ContextCallback callback) throws javax.faces.FacesException
invokeOnComponent
in class javax.faces.component.UIComponentBase
javax.faces.FacesException
public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin
in class javax.faces.component.UIComponentBase
IOException
public void encodeChildren(javax.faces.context.FacesContext context) throws IOException
encodeChildren
in class javax.faces.component.UIComponentBase
IOException
public void encodeEnd(javax.faces.context.FacesContext context) throws IOException
encodeEnd
in class javax.faces.component.UIComponentBase
IOException
public void processDecodes(javax.faces.context.FacesContext context)
processDecodes
in class javax.faces.component.UIInput
public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class javax.faces.component.UIInput
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class javax.faces.component.UIInput
protected 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.StateHolder
restoreState
in class javax.faces.component.UIInput
public Object saveState(javax.faces.context.FacesContext context)
UIInput.saveState(FacesContext)
does not do it (see NXP-8898).saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIInput
public void resetCachedModel()
resetCachedModel
in interface ResettableComponent
public boolean visitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
visitTree
in class javax.faces.component.UIComponent
public 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.EditableValueHolder
setSubmittedValue
in class javax.faces.component.UIInput
public Object getSubmittedValue()
getSubmittedValue
in interface javax.faces.component.EditableValueHolder
getSubmittedValue
in class javax.faces.component.UIInput
Copyright © 2016 Nuxeo SA. All rights reserved.