org.apache.myfaces.view.facelets.tag.jsf.core
Class ValidateDelegateHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by javax.faces.view.facelets.MetaTagHandler
          extended by javax.faces.view.facelets.DelegatingMetaTagHandler
              extended by javax.faces.view.facelets.FaceletsAttachedObjectHandler
                  extended by javax.faces.view.facelets.ValidatorHandler
                      extended by org.apache.myfaces.view.facelets.tag.jsf.core.ValidateDelegateHandler
All Implemented Interfaces:
AttachedObjectHandler, EditableValueHolderAttachedObjectHandler, FaceletHandler, ValueHolderAttachedObjectHandler

@JSFFaceletTag(name="f:validator",
               bodyContent="empty",
               tagClass="org.apache.myfaces.taglib.core.ValidatorImplTag")
@JSFFaceletAttribute(name="disabled",
                     deferredValueType="java.lang.Boolean",
                     desc="no description",
                     longDescription="no description")
public final class ValidateDelegateHandler
extends ValidatorHandler

Register a named Validator instance on the UIComponent associated with the closest parent UIComponent custom action.

See tag documentation.

Version:
$Id: ValidateDelegateHandler.java 1187700 2011-10-22 12:19:37Z bommel $
Author:
Jacob Hookom

Field Summary
 
Fields inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
ValidateDelegateHandler(ValidatorConfig config)
           
 
Method Summary
protected  MetaRuleset createMetaRuleset(Class type)
           
protected  Validator createValidator(FaceletContext ctx)
          Uses the specified "validatorId" to get a new Validator instance from the Application.
 String getValidatorId(FaceletContext ctx)
           
 
Methods inherited from class javax.faces.view.facelets.ValidatorHandler
getTagHandlerDelegate, getValidatorConfig
 
Methods inherited from class javax.faces.view.facelets.FaceletsAttachedObjectHandler
applyAttachedObject, getAttachedObjectHandlerHelper, getFor
 
Methods inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
apply, applyNextHandler, getBinding, getTag, getTagAttribute, getTagId, isDisabled, 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
 
Methods inherited from interface javax.faces.view.AttachedObjectHandler
applyAttachedObject, getFor
 

Constructor Detail

ValidateDelegateHandler

public ValidateDelegateHandler(ValidatorConfig config)
Method Detail

createValidator

protected Validator createValidator(FaceletContext ctx)
Uses the specified "validatorId" to get a new Validator instance from the Application.

See Also:
Application.createValidator(java.lang.String), javax.faces.view.facelets.ValidatorHandler#createValidator(javax.faces.view.facelets.FaceletContext)

createMetaRuleset

protected MetaRuleset createMetaRuleset(Class type)
Overrides:
createMetaRuleset in class DelegatingMetaTagHandler

getValidatorId

public String getValidatorId(FaceletContext ctx)
Overrides:
getValidatorId in class ValidatorHandler


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.