|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.faces.webapp.ValidatorTag org.apache.shale.validator.faces.ValidatorTag
public class ValidatorTag
The tag class for the s:commonsValidator
tag.
$Id: ValidatorTag.java 481413 2006-12-01 21:48:06Z rahul $
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
ValidatorTag()
This constructor obtains a reference to the tag utility object, which is a JSF managed bean. |
Method Summary | |
---|---|
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. |
Methods inherited from class javax.faces.webapp.ValidatorTag |
---|
setValidatorId |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, 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 |
Constructor Detail |
---|
public ValidatorTag()
This constructor obtains a reference to the tag utility object, which is a JSF managed bean.
Method Detail |
---|
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 JspException
Overridden to prevent the call to createValidator()
from
occurring here.
doStartTag
in interface Tag
doStartTag
in class javax.faces.webapp.ValidatorTag
JspException
public int doEndTag() throws JspException
Executes the code that was skipped in the doStartTag()
override.
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- if a JSP processing error occurspublic javax.faces.validator.Validator createValidator() throws 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
JspException
- if a JSP processing error occurspublic void release()
Sets all instance objects representing tag attribute values
to null
.
release
in interface Tag
release
in class javax.faces.webapp.ValidatorTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |