public abstract class ValidatorFamily extends UIComponentBase
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY
The standard component family.
|
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
Constructor and Description |
---|
ValidatorFamily() |
Modifier and Type | Method and Description |
---|---|
void |
encodeChildren(FacesContext context)
Calls
validateHierarchy() . |
String |
getFamily()
Returns
COMPONENT_FAMILY . |
boolean |
getRendersChildren()
Returns
true . |
void |
processDecodes(FacesContext context)
Calls
validateHierarchy() . |
void |
processUpdates(FacesContext context)
Does nothing.
|
void |
processValidators(FacesContext context)
|
protected abstract void |
validateComponents(FacesContext context)
Perform the actual validation.
|
protected abstract void |
validateHierarchy()
Validate our own component hierarchy.
|
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, 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, visitTree
public static final String COMPONENT_FAMILY
public String getFamily()
COMPONENT_FAMILY
.getFamily
in class UIComponent
public boolean getRendersChildren()
true
.getRendersChildren
in class UIComponentBase
public void processDecodes(FacesContext context)
validateHierarchy()
.processDecodes
in class UIComponentBase
public void processValidators(FacesContext context)
processValidators
in class UIComponentBase
public void processUpdates(FacesContext context)
processUpdates
in class UIComponentBase
public void encodeChildren(FacesContext context) throws IOException
validateHierarchy()
.encodeChildren
in class UIComponentBase
IOException
protected abstract void validateHierarchy()
IllegalStateException
- When component hierarchy is wrong.protected abstract void validateComponents(FacesContext context)
context
- The faces context to work with.Copyright © 2012–2020 OmniFaces. All rights reserved.