Class ValidatorTagHandlerDelegate
java.lang.Object
jakarta.faces.view.facelets.TagHandlerDelegate
org.apache.myfaces.view.facelets.tag.faces.ValidatorTagHandlerDelegate
- All Implemented Interfaces:
- FacesWrapper<ValidatorHandler>,- AttachedObjectHandler,- EditableValueHolderAttachedObjectHandler,- ValueHolderAttachedObjectHandler
public class ValidatorTagHandlerDelegate
extends TagHandlerDelegate
implements EditableValueHolderAttachedObjectHandler, FacesWrapper<ValidatorHandler>
Handles setting a Validator instance on a EditableValueHolder. Will wire all attributes set to the Validator instance
 created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to. 
Will only set/create Validator is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing tree.
- Since:
- 2.0
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringif <f:validateBean> has no children and its disabled attribute is true, its validatorId will be added to the exclusion list stored under this key on the parent UIComponent.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(FaceletContext ctx, UIComponent parent) voidapplyAttachedObject(FacesContext context, UIComponent parent) createMetaRuleset(Class type) protected ValidatorTemplate method for creating a Validator instancegetFor()
- 
Field Details- 
VALIDATOR_ID_EXCLUSION_LIST_KEYif <f:validateBean> has no children and its disabled attribute is true, its validatorId will be added to the exclusion list stored under this key on the parent UIComponent.- See Also:
 
 
- 
- 
Constructor Details- 
ValidatorTagHandlerDelegate
 
- 
- 
Method Details- 
apply- Specified by:
- applyin class- TagHandlerDelegate
- Throws:
- IOException
 
- 
createValidatorTemplate method for creating a Validator instance- Parameters:
- ctx- FaceletContext to use
- Returns:
- a new Validator instance
 
- 
createMetaRuleset- Specified by:
- createMetaRulesetin class- TagHandlerDelegate
 
- 
applyAttachedObject- Specified by:
- applyAttachedObjectin interface- AttachedObjectHandler
 
- 
getFor- Specified by:
- getForin interface- AttachedObjectHandler
 
- 
getValidationGroups
- 
getWrapped- Specified by:
- getWrappedin interface- FacesWrapper<ValidatorHandler>
 
 
-