|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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(java.lang.String name,
java.lang.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(java.lang.String newValue)
Setter method for the arg attribute. |
void |
setClient(java.lang.String newValue)
Setter method for the client attribute. |
void |
setDatePatternStrict(java.lang.String newValue)
Setter method for the setDatePatternStrict attribute. |
void |
setMask(java.lang.String newValue)
Setter method for the mask attribute. |
void |
setMax(java.lang.String newValue)
Setter method for the max attribute. |
void |
setMaxlength(java.lang.String newValue)
Setter method for the maxlength attribute. |
void |
setMessage(java.lang.String newValue)
Setter method for the message attribute. |
void |
setMin(java.lang.String newValue)
Setter method for the min attribute. |
void |
setMinlength(java.lang.String newValue)
Setter method for the minlength attribute. |
void |
setServer(java.lang.String newValue)
Setter method for the server attribute. |
void |
setType(java.lang.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(java.lang.String newValue)
Setter method for the type attribute.
newValue - the new attribute valuepublic void setMin(java.lang.String newValue)
Setter method for the min attribute.
newValue - the new attribute valuepublic void setMax(java.lang.String newValue)
Setter method for the max attribute.
newValue - the new attribute valuepublic void setMinlength(java.lang.String newValue)
Setter method for the minlength attribute.
newValue - the new attribute valuepublic void setMaxlength(java.lang.String newValue)
Setter method for the maxlength attribute.
newValue - the new attribute valuepublic void setDatePatternStrict(java.lang.String newValue)
Setter method for the setDatePatternStrict attribute.
newValue - the new attribute valuepublic void setMask(java.lang.String newValue)
Setter method for the mask attribute.
newValue - the new attribute valuepublic void setMessage(java.lang.String newValue)
Setter method for the message attribute.
newValue - the new attribute valuepublic void setArg(java.lang.String newValue)
Setter method for the arg attribute.
newValue - the new attribute valuepublic void setClient(java.lang.String newValue)
Setter method for the client attribute.
newValue - the new attribute valuepublic void setServer(java.lang.String newValue)
Setter method for the server attribute.
newValue - the new attribute value
public void addParam(java.lang.String name,
java.lang.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.TagdoStartTag in class javax.faces.webapp.ValidatorTagjavax.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.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP processing error occurs
public 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.ValidatorTagjavax.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.Tagrelease in class javax.faces.webapp.ValidatorTag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||