public class AbstractValidatorTag extends ValidatorELTag
Base class for all ValidatorTag
s.
- See Also:
- Serialized Form
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected javax.el.ValueExpression
binding
The ValueExpression
that evaluates to an object that
implements Converter
.
protected javax.el.ValueExpression
validatorId
The identifier of the Validator
instance to be created.
-
Constructor Summary
Constructors
Constructor and Description
AbstractValidatorTag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected Validator
createValidator()
Create and return a new Validator
to be registered
on our surrounding UIComponent
.
protected static Validator
createValidator(javax.el.ValueExpression validatorId,
javax.el.ValueExpression binding,
FacesContext facesContext)
void
setBinding(javax.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(javax.el.ValueExpression validatorId)
Set the identifer of the Validator
instance to be created.
-
Methods inherited from class javax.faces.webapp.ValidatorELTag
doStartTag
-
-
Field Detail
-
binding
protected javax.el.ValueExpression binding
The ValueExpression
that evaluates to an object that
implements Converter
.
-
validatorId
protected javax.el.ValueExpression validatorId
The identifier of the Validator
instance to be created.
-
Method Detail
-
setBinding
public void setBinding(javax.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.
- Parameters:
binding
- The new expression
-
setValidatorId
public void setValidatorId(javax.el.ValueExpression validatorId)
Set the identifer of the Validator
instance to be created.
- Parameters:
validatorId
- The identifier of the converter instance to be
created.
-
createValidator
protected Validator createValidator()
throws javax.servlet.jsp.JspException
Description copied from class: ValidatorELTag
Create and return a new Validator
to be registered
on our surrounding UIComponent
.
- Specified by:
createValidator
in class ValidatorELTag
- Returns:
- the created
Validator
- Throws:
javax.servlet.jsp.JspException
- if a new instance cannot be created
-
createValidator
protected static Validator createValidator(javax.el.ValueExpression validatorId,
javax.el.ValueExpression binding,
FacesContext facesContext)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.