public class AbstractValidatorTag
extends jakarta.faces.webapp.ValidatorELTag
Base class for all ValidatorTags.
| Modifier and Type | Field and Description |
|---|---|
protected jakarta.el.ValueExpression |
binding
The
ValueExpression that evaluates to an object that implements
Converter. |
protected jakarta.el.ValueExpression |
validatorId
The identifier of the
Validator instance to be created. |
| Constructor and Description |
|---|
AbstractValidatorTag() |
| Modifier and Type | Method and Description |
|---|---|
protected jakarta.faces.validator.Validator |
createValidator()
Create and return a new
Validator to be registered on our surrounding UIComponent. |
protected static jakarta.faces.validator.Validator |
createValidator(jakarta.el.ValueExpression validatorId,
jakarta.el.ValueExpression binding,
jakarta.faces.context.FacesContext facesContext) |
void |
setBinding(jakarta.el.ValueExpression binding)
Set the expression that will be used to create a
ValueExpression that references a backing bean
property of the Validator instance to be created. |
void |
setValidatorId(jakarta.el.ValueExpression validatorId)
Set the identifer of the
Validator instance to be created. |
protected jakarta.el.ValueExpression binding
The ValueExpression that evaluates to an object that implements
Converter.
protected jakarta.el.ValueExpression validatorId
The identifier of the Validator instance to be created.
public void setBinding(jakarta.el.ValueExpression binding)
Set the expression that will be used to create a ValueExpression that references a backing bean
property of the Validator instance to be created.
binding - The new expressionpublic void setValidatorId(jakarta.el.ValueExpression validatorId)
Set the identifer of the Validator instance to be created.
validatorId - The identifier of the converter instance to be created.protected jakarta.faces.validator.Validator createValidator()
throws jakarta.servlet.jsp.JspException
jakarta.faces.webapp.ValidatorELTag
Create and return a new Validator to be registered on our surrounding UIComponent.
createValidator in class jakarta.faces.webapp.ValidatorELTagValidatorjakarta.servlet.jsp.JspException - if a new instance cannot be createdprotected static jakarta.faces.validator.Validator createValidator(jakarta.el.ValueExpression validatorId,
jakarta.el.ValueExpression binding,
jakarta.faces.context.FacesContext facesContext)
Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.