org.apache.shale.validator.faces
Class ValidatorVarTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.shale.validator.faces.ValidatorVarTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class ValidatorVarTag
extends TagSupport

The tag class for the s:validatorVar tag, used to specify parameters to specific validators of Commons Validator.

$Id: ValidatorVarTag.java 465067 2006-10-17 21:45:17Z rahul $

See Also:
Serialized Form

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
ValidatorVarTag()
           
 
Method Summary
 int doEndTag()
          Pass the validation parameter to the commonsValidatorTag that immediately surrounds this tag.
 void setName(String name)
          The var name.
 void setParent(Tag tag)
          Keeps track of the <s:commonsValidator> tag.
 void setValue(String value)
          The var value.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorVarTag

public ValidatorVarTag()
Method Detail

setParent

public void setParent(Tag tag)
Keeps track of the <s:commonsValidator> tag.

Specified by:
setParent in interface Tag
Overrides:
setParent in class TagSupport
Parameters:
tag - the parent tag of this tag instance.

doEndTag

public int doEndTag()
             throws JspException
Pass the validation parameter to the commonsValidatorTag that immediately surrounds this tag.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
Request to evaluate the page
Throws:
JspException - if a JSP processing error occurs

setName

public void setName(String name)
The var name.

Parameters:
name - The variable name

setValue

public void setValue(String value)
The var value.

Parameters:
value - The variable value


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.