org.apache.myfaces.view.facelets.tag.jsf
Class ValidateHandler
java.lang.Object
javax.faces.view.facelets.TagHandler
javax.faces.view.facelets.MetaTagHandler
org.apache.myfaces.view.facelets.tag.MetaTagHandlerImpl
org.apache.myfaces.view.facelets.tag.jsf.ValidateHandler
- All Implemented Interfaces:
- FaceletHandler
Deprecated. use javax.faces.view.facelets.ValidatorHandler instead
@Deprecated
public class ValidateHandler
- extends MetaTagHandlerImpl
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.
- Version:
- $Id: ValidateHandler.java 1187700 2011-10-22 12:19:37Z bommel $
- Author:
- Jacob Hookom
ValidateHandler
public ValidateHandler(TagConfig config)
- Deprecated.
- Parameters:
config
-
ValidateHandler
public ValidateHandler(ValidatorConfig config)
- Deprecated.
apply
public final void apply(FaceletContext ctx,
UIComponent parent)
throws IOException,
FacesException,
FaceletException,
javax.el.ELException
- Deprecated.
- Throws:
IOException
FacesException
FaceletException
javax.el.ELException
- See Also:
FaceletHandler.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent)
createValidator
protected Validator createValidator(FaceletContext ctx)
- Deprecated.
- Template method for creating a Validator instance
- Parameters:
ctx
- FaceletContext to use
- Returns:
- a new Validator instance
createMetaRuleset
protected MetaRuleset createMetaRuleset(Class type)
- Deprecated.
- Description copied from class:
MetaTagHandlerImpl
- Extend this method in order to add your own rules.
- Overrides:
createMetaRuleset
in class MetaTagHandlerImpl
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.