public abstract class ValidatorFamily extends UIComponentBase
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY
The standard component family.
|
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, 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, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTreepublic static final String COMPONENT_FAMILY
public String getFamily()
COMPONENT_FAMILY.getFamily in class UIComponentpublic boolean getRendersChildren()
true.getRendersChildren in class UIComponentBasepublic void processDecodes(FacesContext context)
validateHierarchy().processDecodes in class UIComponentBasepublic void processValidators(FacesContext context)
processValidators in class UIComponentBasepublic void processUpdates(FacesContext context)
processUpdates in class UIComponentBasepublic void encodeChildren(FacesContext context) throws IOException
validateHierarchy().encodeChildren in class UIComponentBaseIOExceptionprotected abstract void validateHierarchy()
throws IllegalArgumentException
IllegalArgumentException - When component hierarchy is wrong.protected abstract void validateComponents(FacesContext context)
context - The faces context to work with.