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:
- javax.faces.view.facelets.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,v 1.4 2008/07/13 19:01:46 rlubke Exp $
- Author:
- Jacob Hookom
Fields inherited from class javax.faces.view.facelets.TagHandler |
nextHandler, tag, tagId |
Constructor Summary |
ValidateHandler(javax.faces.view.facelets.TagConfig config)
Deprecated. |
ValidateHandler(javax.faces.view.facelets.ValidatorConfig config)
Deprecated. |
Method Summary |
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
Deprecated. |
protected javax.faces.view.facelets.MetaRuleset |
createMetaRuleset(java.lang.Class type)
Deprecated. Extend this method in order to add your own rules. |
protected javax.faces.validator.Validator |
createValidator(javax.faces.view.facelets.FaceletContext ctx)
Deprecated. Template method for creating a Validator instance |
Methods inherited from class javax.faces.view.facelets.MetaTagHandler |
setAttributes |
Methods inherited from class javax.faces.view.facelets.TagHandler |
getAttribute, getRequiredAttribute, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValidateHandler
public ValidateHandler(javax.faces.view.facelets.TagConfig config)
- Deprecated.
- Parameters:
config
-
ValidateHandler
public ValidateHandler(javax.faces.view.facelets.ValidatorConfig config)
- Deprecated.
apply
public final void apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
throws java.io.IOException,
javax.faces.FacesException,
javax.faces.view.facelets.FaceletException,
javax.el.ELException
- Deprecated.
- Throws:
java.io.IOException
javax.faces.FacesException
javax.faces.view.facelets.FaceletException
javax.el.ELException
- See Also:
FaceletHandler.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent)
createValidator
protected javax.faces.validator.Validator createValidator(javax.faces.view.facelets.FaceletContext ctx)
- Deprecated.
- Template method for creating a Validator instance
- Parameters:
ctx
- FaceletContext to use
- Returns:
- a new Validator instance
createMetaRuleset
protected javax.faces.view.facelets.MetaRuleset createMetaRuleset(java.lang.Class type)
- Deprecated.
- Description copied from class:
MetaTagHandlerImpl
- Extend this method in order to add your own rules.
- Overrides:
createMetaRuleset
in class MetaTagHandlerImpl
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.