public abstract class ValidatorFamily
extends javax.faces.component.UIComponentBase
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_FAMILY
The standard component family.
|
| Constructor and Description |
|---|
ValidatorFamily() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeChildren(javax.faces.context.FacesContext context)
Calls
validateHierarchy(). |
java.lang.String |
getFamily()
Returns
COMPONENT_FAMILY. |
boolean |
getRendersChildren()
Returns
true. |
void |
processDecodes(javax.faces.context.FacesContext context)
Calls
validateHierarchy(). |
void |
processUpdates(javax.faces.context.FacesContext context)
Does nothing.
|
void |
processValidators(javax.faces.context.FacesContext context)
|
protected abstract void |
validateComponents(javax.faces.context.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 java.lang.String COMPONENT_FAMILY
public java.lang.String getFamily()
COMPONENT_FAMILY.getFamily in class javax.faces.component.UIComponentpublic boolean getRendersChildren()
true.getRendersChildren in class javax.faces.component.UIComponentBasepublic void processDecodes(javax.faces.context.FacesContext context)
validateHierarchy().processDecodes in class javax.faces.component.UIComponentBasepublic void processValidators(javax.faces.context.FacesContext context)
processValidators in class javax.faces.component.UIComponentBasepublic void processUpdates(javax.faces.context.FacesContext context)
processUpdates in class javax.faces.component.UIComponentBasepublic void encodeChildren(javax.faces.context.FacesContext context)
throws java.io.IOException
validateHierarchy().encodeChildren in class javax.faces.component.UIComponentBasejava.io.IOExceptionprotected abstract void validateHierarchy()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - When component hierarchy is wrong.protected abstract void validateComponents(javax.faces.context.FacesContext context)
context - The faces context to work with.