org.apache.myfaces.view.facelets.tag.jsf
Class ValidatorTagHandlerDelegate
java.lang.Object
javax.faces.view.facelets.TagHandlerDelegate
org.apache.myfaces.view.facelets.tag.jsf.ValidatorTagHandlerDelegate
- All Implemented Interfaces:
- AttachedObjectHandler, EditableValueHolderAttachedObjectHandler, ValueHolderAttachedObjectHandler
public class ValidatorTagHandlerDelegate
- extends TagHandlerDelegate
- implements EditableValueHolderAttachedObjectHandler
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: 964310 $ $Date: 2010-07-15 01:17:19 -0500 (Thu, 15 Jul 2010) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Field Summary |
static java.lang.String |
VALIDATOR_ID_EXCLUSION_LIST_KEY
if 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATOR_ID_EXCLUSION_LIST_KEY
public static final java.lang.String VALIDATOR_ID_EXCLUSION_LIST_KEY
- if 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:
- Constant Field Values
ValidatorTagHandlerDelegate
public ValidatorTagHandlerDelegate(ValidatorHandler delegate)
apply
public void apply(FaceletContext ctx,
UIComponent parent)
throws java.io.IOException
- Specified by:
apply
in class TagHandlerDelegate
- Throws:
java.io.IOException
createValidator
protected Validator createValidator(FaceletContext ctx)
- Template method for creating a Validator instance
- Parameters:
ctx
- FaceletContext to use
- Returns:
- a new Validator instance
createMetaRuleset
public MetaRuleset createMetaRuleset(java.lang.Class type)
- Specified by:
createMetaRuleset
in class TagHandlerDelegate
applyAttachedObject
public void applyAttachedObject(FacesContext context,
UIComponent parent)
- Specified by:
applyAttachedObject
in interface AttachedObjectHandler
getFor
public java.lang.String getFor()
- Specified by:
getFor
in interface AttachedObjectHandler
getValidationGroups
public java.lang.String getValidationGroups(FaceletContext ctx)
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.