Package io.jans.jsf2.component
Class UIInputContainer
java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
io.jans.jsf2.component.UIInputContainer
- All Implemented Interfaces:
jakarta.faces.component.NamingContainer,jakarta.faces.component.PartialStateHolder,jakarta.faces.component.StateHolder,jakarta.faces.component.TransientStateHolder,jakarta.faces.event.ComponentSystemEventListener,jakarta.faces.event.FacesListener,jakarta.faces.event.SystemEventListenerHolder,EventListener
public class UIInputContainer
extends jakarta.faces.component.UIComponentBase
implements jakarta.faces.component.NamingContainer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe standard component type for this component.protected static final Stringprotected static final Stringprotected static final StringFields inherited from class jakarta.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 jakarta.faces.component.NamingContainer
SEPARATOR_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignIds(UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) voidencodeBegin(jakarta.faces.context.FacesContext context) voidencodeEnd(jakarta.faces.context.FacesContext context) protected voidendContainerElement(jakarta.faces.context.FacesContext context) protected StringgenerateLabel(UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) The name of the auto-generated composite component attribute that holds the elements in this input container.The name of the composite component attribute that holds a boolean indicating whether the component template should be enclosed in an HTML element, so that it be referenced from JavaScript.The name of the auto-generated composite component attribute that holds a boolean indicating whether the the template contains an invalid input.The name of the composite component attribute that holds the string label for this set of inputs.The name of the auto-generated composite component attribute that holds a boolean indicating whether the template contains a required input.protected UIInputContainer.InputContainerElementsscan(jakarta.faces.component.UIComponent component, UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) Walk the component tree branch built by the composite component and locate the input container elements.protected voidstartContainerElement(jakarta.faces.context.FacesContext context) protected voidwire(UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) Wire the label and messages to the input(s)Methods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventMethods inherited from class jakarta.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, visitTree
-
Field Details
-
COMPONENT_TYPE
The standard component type for this component.- See Also:
-
HTML_ID_ATTR_NAME
- See Also:
-
HTML_CLASS_ATTR_NAME
- See Also:
-
HTML_STYLE_ATTR_NAME
- See Also:
-
-
Constructor Details
-
UIInputContainer
public UIInputContainer()
-
-
Method Details
-
getFamily
- Specified by:
getFamilyin classjakarta.faces.component.UIComponent
-
getInvalidAttributeName
The name of the auto-generated composite component attribute that holds a boolean indicating whether the the template contains an invalid input. -
getRequiredAttributeName
The name of the auto-generated composite component attribute that holds a boolean indicating whether the template contains a required input. -
getLabelAttributeName
The name of the composite component attribute that holds the string label for this set of inputs. If the label attribute is not provided, one will be generated from the id of the composite component or, if the id is defaulted, the name of the property bound to the first input. -
getElementsAttributeName
The name of the auto-generated composite component attribute that holds the elements in this input container. The elements include the label, a list of inputs and a cooresponding list of messages. -
getEncloseAttributeName
The name of the composite component attribute that holds a boolean indicating whether the component template should be enclosed in an HTML element, so that it be referenced from JavaScript. -
getContainerElementName
-
getDefaultLabelId
-
getDefaultInputId
-
getDefaultMessageId
-
encodeBegin
- Overrides:
encodeBeginin classjakarta.faces.component.UIComponentBase- Throws:
IOException
-
encodeEnd
- Overrides:
encodeEndin classjakarta.faces.component.UIComponentBase- Throws:
IOException
-
startContainerElement
- Throws:
IOException
-
endContainerElement
- Throws:
IOException
-
generateLabel
protected String generateLabel(UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) -
scan
protected UIInputContainer.InputContainerElements scan(jakarta.faces.component.UIComponent component, UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) Walk the component tree branch built by the composite component and locate the input container elements.- Returns:
- a composite object of the input container elements
-
assignIds
public void assignIds(UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) -
wire
protected void wire(UIInputContainer.InputContainerElements elements, jakarta.faces.context.FacesContext context) Wire the label and messages to the input(s)
-