Name
ValidatorTag
Synopsis
This class is a base class
for JSP tag handler
class for actions that configures the component represented by the
closest UIComponentTag
parent tag handler with a
Validator
.
Synopsis
Class name: |
javax.faces.webapp.ValidatorTag |
Extends: |
javax.servlet.jsp.tagext.TagSupport |
Implements: |
javax.servlet.jsp.tagext.IterationTag |
Constructors
-
public ValidatorTag()
Creates an instance.
Methods
-
protected javax.faces.validator.Validator createValidator()
Returns a
Validator
, configured based on tag handler attribute values. An implementation of this method can be provided by a subclass. This implementation creates an instance of the converter identified by thevalidatorId
attribute.-
public int doStartTag()
Calls
createValidator()
to create aValidator
and configures the component represented by the closestUIComponentTag
parent tag handler to use if the component was created while processing the JSP page.-
public void release()
Releases all references to acquired resources.
-
public void setValidatorId(String validatorId)
Sets the
validatorId
attribute.
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.