public class ValidatorTagHandlerDelegate extends TagHandlerDelegate implements EditableValueHolderAttachedObjectHandler, FacesWrapper<ValidatorHandler>
Will only set/create Validator is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing tree.
Modifier and Type | Field and Description |
---|---|
static String |
VALIDATOR_ID_EXCLUSION_LIST_KEY
if <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 and Description |
---|
ValidatorTagHandlerDelegate(ValidatorHandler delegate) |
Modifier and Type | Method and Description |
---|---|
void |
apply(FaceletContext ctx,
UIComponent parent) |
void |
applyAttachedObject(FacesContext context,
UIComponent parent) |
MetaRuleset |
createMetaRuleset(Class type) |
protected Validator |
createValidator(FaceletContext ctx)
Template method for creating a Validator instance
|
String |
getFor() |
String |
getValidationGroups(FaceletContext ctx) |
ValidatorHandler |
getWrapped() |
public static final String VALIDATOR_ID_EXCLUSION_LIST_KEY
public ValidatorTagHandlerDelegate(ValidatorHandler delegate)
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
apply
in class TagHandlerDelegate
IOException
protected Validator createValidator(FaceletContext ctx)
ctx
- FaceletContext to usepublic MetaRuleset createMetaRuleset(Class type)
createMetaRuleset
in class TagHandlerDelegate
public void applyAttachedObject(FacesContext context, UIComponent parent)
applyAttachedObject
in interface AttachedObjectHandler
public String getFor()
getFor
in interface AttachedObjectHandler
public String getValidationGroups(FaceletContext ctx)
public ValidatorHandler getWrapped()
getWrapped
in interface FacesWrapper<ValidatorHandler>
Copyright © 2020 The Apache Software Foundation. All rights reserved.