Class ControlTag
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
org.apache.empire.jsf2.components.ControlTag
- All Implemented Interfaces:
EventListener,javax.faces.component.EditableValueHolder,javax.faces.component.NamingContainer,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.component.ValueHolder,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder,TagEncodingHelperFactory.TagEncodingHolder
public class ControlTag
extends javax.faces.component.UIInput
implements javax.faces.component.NamingContainer, TagEncodingHelperFactory.TagEncodingHolder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classControlSeparatorComponentstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InputControlprotected booleanprotected final TagEncodingHelperprotected InputControl.InputInfoprotected static final Stringprotected ControlRenderInfoprotected Objectprotected booleanprotected Stringremember original clientId necessary only inside UIDataprotected booleanFields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAMEFields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEYFields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeBegin(javax.faces.context.FacesContext context) voidencodeChildren(javax.faces.context.FacesContext context) voidencodeEnd(javax.faces.context.FacesContext context) protected voidencodeInput(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent) called from InputSeparatorComponentprotected voidencodeLabel(javax.faces.context.FacesContext context, javax.faces.component.UIComponentBase parent, boolean customInput) called from LabelSeparatorComponentgetClientId(javax.faces.context.FacesContext context) protected booleangetColon()protected ObjectgetConvertedValue(javax.faces.context.FacesContext context, Object newSubmittedValue) getId()booleangetValue()protected booleaninitInputState(javax.faces.context.FacesContext context) booleanbooleanbooleanvoidprocessDecodes(javax.faces.context.FacesContext context) voidprocessUpdates(javax.faces.context.FacesContext context) voidprocessValidators(javax.faces.context.FacesContext context) voidrenderInput(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent, boolean allowWrapper) protected voidprotected voidvoidvoidsetParent(javax.faces.component.UIComponent parent) protected voidsetRenderInput(boolean renderInput) voidsetSubmittedValue(Object submittedValue) protected voidupdateControlInputState(javax.faces.context.FacesContext context) voidupdateModel(javax.faces.context.FacesContext context) voidvalidate(javax.faces.context.FacesContext context) voidvalidateValue(javax.faces.context.FacesContext context, Object value) booleanvisitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback) Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConverterMessage, getRequiredMessage, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListenerMethods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverterMethods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventMethods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
-
Field Details
-
readOnlyState
- See Also:
-
helper
-
control
-
inpInfo
-
renderInfo
-
submittedValueDetected
protected boolean submittedValueDetected -
submittedValue
-
valueValidated
protected boolean valueValidated -
controlVisible
protected boolean controlVisible -
treeClientId
remember original clientId necessary only inside UIData
-
-
Constructor Details
-
ControlTag
public ControlTag()
-
-
Method Details
-
getFamily
- Overrides:
getFamilyin classjavax.faces.component.UIInput
-
getEncodingHelper
- Specified by:
getEncodingHelperin interfaceTagEncodingHelperFactory.TagEncodingHolder
-
saveState
protected void saveState() -
initInputState
protected boolean initInputState(javax.faces.context.FacesContext context) -
getId
- Overrides:
getIdin classjavax.faces.component.UIComponentBase
-
setId
- Overrides:
setIdin classjavax.faces.component.UIComponentBase
-
setParent
public void setParent(javax.faces.component.UIComponent parent) - Overrides:
setParentin classjavax.faces.component.UIComponentBase
-
visitTree
public boolean visitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback) - Overrides:
visitTreein classjavax.faces.component.UIComponent
-
getClientId
- Overrides:
getClientIdin classjavax.faces.component.UIComponentBase
-
getRendersChildren
public boolean getRendersChildren()- Overrides:
getRendersChildrenin classjavax.faces.component.UIComponentBase
-
encodeBegin
- Overrides:
encodeBeginin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
encodeChildren
- Overrides:
encodeChildrenin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
encodeEnd
- Overrides:
encodeEndin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
isCustomInput
public boolean isCustomInput() -
encodeLabel
protected void encodeLabel(javax.faces.context.FacesContext context, javax.faces.component.UIComponentBase parent, boolean customInput) throws IOException called from LabelSeparatorComponent- Parameters:
context- the faces contextparent- the LabelSeparatorComponentcustomInput- flag whether a custom input component is used- Throws:
IOException- from ResponseWriter
-
encodeInput
protected void encodeInput(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent) throws IOException called from InputSeparatorComponent- Parameters:
context- the faces contextparent- the InputSeparatorComponent- Throws:
IOException- from ResponseWriter
-
renderInput
public void renderInput(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent, boolean allowWrapper) throws IOException - Throws:
IOException
-
getValue
- Specified by:
getValuein interfacejavax.faces.component.ValueHolder- Overrides:
getValuein classjavax.faces.component.UIInput
-
getSubmittedValue
- Specified by:
getSubmittedValuein interfacejavax.faces.component.EditableValueHolder- Overrides:
getSubmittedValuein classjavax.faces.component.UIInput
-
setSubmittedValue
- Specified by:
setSubmittedValuein interfacejavax.faces.component.EditableValueHolder- Overrides:
setSubmittedValuein classjavax.faces.component.UIInput
-
getConvertedValue
protected Object getConvertedValue(javax.faces.context.FacesContext context, Object newSubmittedValue) throws javax.faces.convert.ConverterException - Overrides:
getConvertedValuein classjavax.faces.component.UIInput- Throws:
javax.faces.convert.ConverterException
-
processDecodes
public void processDecodes(javax.faces.context.FacesContext context) - Overrides:
processDecodesin classjavax.faces.component.UIInput
-
processValidators
public void processValidators(javax.faces.context.FacesContext context) - Overrides:
processValidatorsin classjavax.faces.component.UIInput
-
validate
public void validate(javax.faces.context.FacesContext context) - Overrides:
validatein classjavax.faces.component.UIInput
-
validateValue
- Overrides:
validateValuein classjavax.faces.component.UIInput
-
processUpdates
public void processUpdates(javax.faces.context.FacesContext context) - Overrides:
processUpdatesin classjavax.faces.component.UIInput
-
updateModel
public void updateModel(javax.faces.context.FacesContext context) - Overrides:
updateModelin classjavax.faces.component.UIInput
-
getInputControl
-
getInputColumn
-
isInputReadOnly
public boolean isInputReadOnly() -
isInputRequired
public boolean isInputRequired() -
resetSubmittedValue
protected void resetSubmittedValue() -
updateControlInputState
protected void updateControlInputState(javax.faces.context.FacesContext context) -
setRenderInput
protected void setRenderInput(boolean renderInput) -
getColon
protected boolean getColon()
-