javax.faces.webapp
Class ValidatorTag
java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.TagSupport
       javax.faces.webapp.ValidatorTag
javax.faces.webapp.ValidatorTag
- All Implemented Interfaces: 
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
- public class ValidatorTag 
- extends javax.servlet.jsp.tagext.TagSupport
Creates a validator and associates it with the nearest parent
 UIComponent.  During the validation phase (or the apply-request-values
 phase for immediate components), if the associated component has any
 submitted value and the conversion of that value to the required
 type has succeeded then the specified validator type is
 invoked to test the validity of the converted value.
 
 Commonly associated with an h:inputText entity, but may be applied to
 any input component.
 
 Some validators may allow the component to use attributes to define
 component-specific validation constraints; see the f:attribute tag.
 See also the "validator" attribute of all input components, which
 allows a component to specify an arbitrary validation method
 (rather than a registered validation type, as this tag does).
 
 Unless otherwise specified, all attributes accept static values
 or EL expressions.
 
 see Javadoc of JSF Specification
- Version:
- $Revision: 676278 $ $Date: 2008-07-13 03:35:04 -0500 (Sun, 13 Jul 2008) $
- Author:
- Manfred Geiler (latest modification by $Author: skitching $)
- See Also:
- Serialized Form
 
| 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 | 
 
 
 
| 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 | 
 
ValidatorTag
public ValidatorTag()
setValidatorId
public void setValidatorId(String validatorId)
- The registered ID of the desired Validator.
 
- 
 
doStartTag
public int doStartTag()
               throws javax.servlet.jsp.JspException
- 
- Specified by:
- doStartTagin interface- javax.servlet.jsp.tagext.Tag
- Overrides:
- doStartTagin class- javax.servlet.jsp.tagext.TagSupport
 
- 
- Throws:
- javax.servlet.jsp.JspException
 
release
public void release()
- 
- Specified by:
- releasein interface- javax.servlet.jsp.tagext.Tag
- Overrides:
- releasein class- javax.servlet.jsp.tagext.TagSupport
 
- 
 
createValidator
protected Validator createValidator()
                             throws javax.servlet.jsp.JspException
- 
- Throws:
- javax.servlet.jsp.JspException
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.