org.apache.myfaces.trinidadinternal.taglib
Class ValidatorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.trinidadinternal.taglib.ValidatorTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public final class ValidatorTag
extends javax.servlet.jsp.tagext.TagSupport

This tag implements a generic validator tag. It adds support for a "binding" attribute as well as a "validatorId"

Author:
The Oracle ADF Faces Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ValidatorTag()
           
 
Method Summary
protected  javax.faces.validator.Validator createValidator()
           
 int doStartTag()
           
 void release()
          Release state.
 void setBinding(java.lang.String binding)
          if this EL binding expression is set, it will be used to get at a Validator instance.
 void setValidatorId(java.lang.String validatorId)
          Sets the validatorId that will be used to find a registered Validator.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorTag

public ValidatorTag()
Method Detail

setValidatorId

public void setValidatorId(java.lang.String validatorId)
Sets the validatorId that will be used to find a registered Validator. This property will be used if there is no binding on this tag, or if the binding returns null (in the latter case the Validator instance will be set on the binding).

Parameters:
validatorId -

setBinding

public void setBinding(java.lang.String binding)
if this EL binding expression is set, it will be used to get at a Validator instance. This expression must be a ValueBinding to a property that returns a Validator.

Parameters:
binding -

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Release state.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

createValidator

protected javax.faces.validator.Validator createValidator()
                                                   throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.