public class ValidatorTag
extends javax.faces.webapp.ValidatorTag
s:commonsValidator
tag.
$Id: ValidatorTag.java 481413 2006-12-01 21:48:06Z rahul $Constructor and Description |
---|
ValidatorTag()
This constructor obtains a reference to the
tag utility object, which is a JSF managed bean.
|
Modifier and Type | Method and Description |
---|---|
void |
addParam(String name,
String value)
Adds a parameter to pass to the Commons Validator that will be
used.
|
javax.faces.validator.Validator |
createValidator()
Create a validator by calling
super.createValidator() . |
int |
doEndTag()
Executes the code that was skipped in the
doStartTag()
override. |
int |
doStartTag()
Overridden to prevent the call to
createValidator() from
occurring here. |
void |
release()
Sets all instance objects representing tag attribute values
to
null . |
void |
setArg(String newValue)
Setter method for the
arg attribute. |
void |
setClient(String newValue)
Setter method for the
client attribute. |
void |
setDatePatternStrict(String newValue)
Setter method for the
setDatePatternStrict attribute. |
void |
setMask(String newValue)
Setter method for the
mask attribute. |
void |
setMax(String newValue)
Setter method for the
max attribute. |
void |
setMaxlength(String newValue)
Setter method for the
maxlength attribute. |
void |
setMessage(String newValue)
Setter method for the
message attribute. |
void |
setMin(String newValue)
Setter method for the
min attribute. |
void |
setMinlength(String newValue)
Setter method for the
minlength attribute. |
void |
setServer(String newValue)
Setter method for the
server attribute. |
void |
setType(String newValue)
Setter method for the
type attribute. |
public ValidatorTag()
This constructor obtains a reference to the tag utility object, which is a JSF managed bean.
public void setType(String newValue)
Setter method for the type
attribute.
newValue
- the new attribute valuepublic void setMin(String newValue)
Setter method for the min
attribute.
newValue
- the new attribute valuepublic void setMax(String newValue)
Setter method for the max
attribute.
newValue
- the new attribute valuepublic void setMinlength(String newValue)
Setter method for the minlength
attribute.
newValue
- the new attribute valuepublic void setMaxlength(String newValue)
Setter method for the maxlength
attribute.
newValue
- the new attribute valuepublic void setDatePatternStrict(String newValue)
Setter method for the setDatePatternStrict
attribute.
newValue
- the new attribute valuepublic void setMask(String newValue)
Setter method for the mask
attribute.
newValue
- the new attribute valuepublic void setMessage(String newValue)
Setter method for the message
attribute.
newValue
- the new attribute valuepublic void setArg(String newValue)
Setter method for the arg
attribute.
newValue
- the new attribute valuepublic void setClient(String newValue)
Setter method for the client
attribute.
newValue
- the new attribute valuepublic void setServer(String newValue)
Setter method for the server
attribute.
newValue
- the new attribute valuepublic void addParam(String name, String value)
Adds a parameter to pass to the Commons Validator that will be used.
name
- the name of the parameter to pass to the validator.value
- the value of the parameter to pass to the validator.public int doStartTag() throws javax.servlet.jsp.JspException
Overridden to prevent the call to createValidator()
from
occurring here.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.faces.webapp.ValidatorTag
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
Executes the code that was skipped in the doStartTag()
override.
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP processing error occurspublic javax.faces.validator.Validator createValidator() throws javax.servlet.jsp.JspException
Create a validator by calling super.createValidator()
.
This method initializes that validator with the tag's attribute
values.
createValidator
in class javax.faces.webapp.ValidatorTag
javax.servlet.jsp.JspException
- if a JSP processing error occurspublic void release()
Sets all instance objects representing tag attribute values
to null
.
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.faces.webapp.ValidatorTag
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.