java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
org.omnifaces.component.validator.ValidatorFamily
- All Implemented Interfaces:
PartialStateHolder,StateHolder,TransientStateHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder,EventListener
- Direct Known Subclasses:
ValidateMultipleFields
Base class which is to be shared between all components of the Validator family.
- Author:
- Bauke Scholtz
-
Field Summary
FieldsFields inherited from class jakarta.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeChildren(FacesContext context) ReturnsCOMPONENT_FAMILY.booleanReturnstrue.voidprocessDecodes(FacesContext context) voidprocessUpdates(FacesContext context) Does nothing.voidprocessValidators(FacesContext context) protected abstract voidvalidateComponents(FacesContext context) Perform the actual validation.protected abstract voidvalidateHierarchy(FacesContext context) Validate our own component hierarchy.Methods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeAll, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, visitTreeMethods inherited from class jakarta.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
-
Field Details
-
COMPONENT_FAMILY
The standard component family.- See Also:
-
-
Constructor Details
-
ValidatorFamily
public ValidatorFamily()
-
-
Method Details
-
getFamily
ReturnsCOMPONENT_FAMILY.- Specified by:
getFamilyin classUIComponent
-
getRendersChildren
public boolean getRendersChildren()Returnstrue.- Overrides:
getRendersChildrenin classUIComponentBase
-
processDecodes
- Overrides:
processDecodesin classUIComponentBase
-
processValidators
- Overrides:
processValidatorsin classUIComponentBase
-
processUpdates
Does nothing.- Overrides:
processUpdatesin classUIComponentBase
-
encodeChildren
- Overrides:
encodeChildrenin classUIComponentBase- Throws:
IOException
-
validateHierarchy
Validate our own component hierarchy.- Parameters:
context- The faces context to work with.- Throws:
IllegalStateException- When component hierarchy is wrong.- Since:
- 4.6
-
validateComponents
Perform the actual validation.- Parameters:
context- The faces context to work with.
-