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 Classes
    Modifier and Type
    Class
    Description
    static class 
    ControlSeparatorComponent
    static class 
     
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected InputControl
     
    protected boolean
     
    protected final TagEncodingHelper
     
     
    protected static final String
     
     
    protected Object
     
    protected boolean
     
    protected String
    remember original clientId necessary only inside UIData
    protected boolean
     

    Fields inherited from class javax.faces.component.UIInput

    COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME

    Fields 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_KEY

    Fields inherited from interface javax.faces.component.NamingContainer

    SEPARATOR_CHAR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encodeBegin(javax.faces.context.FacesContext context)
     
    void
    encodeChildren(javax.faces.context.FacesContext context)
     
    void
    encodeEnd(javax.faces.context.FacesContext context)
     
    protected void
    encodeInput(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent)
    called from InputSeparatorComponent
    protected void
    encodeLabel(javax.faces.context.FacesContext context, javax.faces.component.UIComponentBase parent, boolean customInput)
    called from LabelSeparatorComponent
    getClientId(javax.faces.context.FacesContext context)
     
    protected boolean
     
    protected Object
    getConvertedValue(javax.faces.context.FacesContext context, Object newSubmittedValue)
     
     
     
     
     
     
    boolean
     
     
     
    protected boolean
    initInputState(javax.faces.context.FacesContext context)
     
    boolean
     
    boolean
     
    boolean
     
    void
    processDecodes(javax.faces.context.FacesContext context)
     
    void
    processUpdates(javax.faces.context.FacesContext context)
     
    void
    processValidators(javax.faces.context.FacesContext context)
     
    void
    renderInput(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent, boolean allowWrapper)
     
    protected void
     
    protected void
     
    void
     
    void
    setParent(javax.faces.component.UIComponent parent)
     
    protected void
    setRenderInput(boolean renderInput)
     
    void
    setSubmittedValue(Object submittedValue)
     
    protected void
    updateControlInputState(javax.faces.context.FacesContext context)
     
    void
    updateModel(javax.faces.context.FacesContext context)
     
    void
    validate(javax.faces.context.FacesContext context)
     
    void
    validateValue(javax.faces.context.FacesContext context, Object value)
     
    boolean
    visitTree(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, setValueChangeListener

    Methods inherited from class javax.faces.component.UIOutput

    getConverter, getLocalValue, setConverter

    Methods 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, unsubscribeFromEvent

    Methods 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, setValueExpression

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.faces.component.ValueHolder

    getConverter, getLocalValue, setConverter
  • Field Details

    • readOnlyState

      protected static final String readOnlyState
      See Also:
    • helper

      protected final TagEncodingHelper helper
    • control

      protected InputControl control
    • inpInfo

      protected InputControl.InputInfo inpInfo
    • renderInfo

      protected ControlRenderInfo renderInfo
    • submittedValueDetected

      protected boolean submittedValueDetected
    • submittedValue

      protected Object submittedValue
    • valueValidated

      protected boolean valueValidated
    • controlVisible

      protected boolean controlVisible
    • treeClientId

      protected String treeClientId
      remember original clientId necessary only inside UIData
  • Constructor Details

    • ControlTag

      public ControlTag()
  • Method Details

    • getFamily

      public String getFamily()
      Overrides:
      getFamily in class javax.faces.component.UIInput
    • getEncodingHelper

      public TagEncodingHelper getEncodingHelper()
      Specified by:
      getEncodingHelper in interface TagEncodingHelperFactory.TagEncodingHolder
    • saveState

      protected void saveState()
    • initInputState

      protected boolean initInputState(javax.faces.context.FacesContext context)
    • getId

      public String getId()
      Overrides:
      getId in class javax.faces.component.UIComponentBase
    • setId

      public void setId(String id)
      Overrides:
      setId in class javax.faces.component.UIComponentBase
    • setParent

      public void setParent(javax.faces.component.UIComponent parent)
      Overrides:
      setParent in class javax.faces.component.UIComponentBase
    • visitTree

      public boolean visitTree(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
      Overrides:
      visitTree in class javax.faces.component.UIComponent
    • getClientId

      public String getClientId(javax.faces.context.FacesContext context)
      Overrides:
      getClientId in class javax.faces.component.UIComponentBase
    • getRendersChildren

      public boolean getRendersChildren()
      Overrides:
      getRendersChildren in class javax.faces.component.UIComponentBase
    • encodeBegin

      public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeBegin in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • encodeChildren

      public void encodeChildren(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeChildren in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • encodeEnd

      public void encodeEnd(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeEnd in class javax.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 context
      parent - the LabelSeparatorComponent
      customInput - 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 context
      parent - 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

      public Object getValue()
      Specified by:
      getValue in interface javax.faces.component.ValueHolder
      Overrides:
      getValue in class javax.faces.component.UIInput
    • getSubmittedValue

      public Object getSubmittedValue()
      Specified by:
      getSubmittedValue in interface javax.faces.component.EditableValueHolder
      Overrides:
      getSubmittedValue in class javax.faces.component.UIInput
    • setSubmittedValue

      public void setSubmittedValue(Object submittedValue)
      Specified by:
      setSubmittedValue in interface javax.faces.component.EditableValueHolder
      Overrides:
      setSubmittedValue in class javax.faces.component.UIInput
    • getConvertedValue

      protected Object getConvertedValue(javax.faces.context.FacesContext context, Object newSubmittedValue) throws javax.faces.convert.ConverterException
      Overrides:
      getConvertedValue in class javax.faces.component.UIInput
      Throws:
      javax.faces.convert.ConverterException
    • processDecodes

      public void processDecodes(javax.faces.context.FacesContext context)
      Overrides:
      processDecodes in class javax.faces.component.UIInput
    • processValidators

      public void processValidators(javax.faces.context.FacesContext context)
      Overrides:
      processValidators in class javax.faces.component.UIInput
    • validate

      public void validate(javax.faces.context.FacesContext context)
      Overrides:
      validate in class javax.faces.component.UIInput
    • validateValue

      public void validateValue(javax.faces.context.FacesContext context, Object value)
      Overrides:
      validateValue in class javax.faces.component.UIInput
    • processUpdates

      public void processUpdates(javax.faces.context.FacesContext context)
      Overrides:
      processUpdates in class javax.faces.component.UIInput
    • updateModel

      public void updateModel(javax.faces.context.FacesContext context)
      Overrides:
      updateModel in class javax.faces.component.UIInput
    • getInputControl

      public InputControl getInputControl()
    • getInputColumn

      public Column 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()