org.apache.myfaces.view.facelets.tag.jsf
Class ValidateHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by javax.faces.view.facelets.MetaTagHandler
          extended by org.apache.myfaces.view.facelets.tag.MetaTagHandlerImpl
              extended by 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

Field Summary
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
ValidateHandler(TagConfig config)
          Deprecated.  
ValidateHandler(ValidatorConfig config)
          Deprecated.  
 
Method Summary
 void apply(FaceletContext ctx, UIComponent parent)
          Deprecated.  
protected  MetaRuleset createMetaRuleset(Class type)
          Deprecated. Extend this method in order to add your own rules.
protected  Validator createValidator(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
 

Constructor Detail

ValidateHandler

public ValidateHandler(TagConfig config)
Deprecated. 

Parameters:
config -

ValidateHandler

public ValidateHandler(ValidatorConfig config)
Deprecated. 
Method Detail

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 © 2014 The Apache Software Foundation. All Rights Reserved.