org.apache.myfaces.tobago.taglib.component
Class SubmittedValueLengthValidatorTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.faces.webapp.ValidatorTag
org.apache.myfaces.tobago.taglib.component.SubmittedValueLengthValidatorTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class SubmittedValueLengthValidatorTag
- extends javax.faces.webapp.ValidatorTag
Register an SubmittedValueLengthValidator instance on the UIComponent
associated with the closest parent UIComponent custom action.
The standard LengthValidator validate the length on the converted value.toString()
not on the submitted value. Sometime you need to check the length of the submitted value.
- See Also:
- Serialized Form
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 |
Methods inherited from class javax.faces.webapp.ValidatorTag |
doStartTag, setValidatorId |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, 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 |
SubmittedValueLengthValidatorTag
public SubmittedValueLengthValidatorTag()
getMinimum
public java.lang.String getMinimum()
setMinimum
public void setMinimum(java.lang.String minimum)
getMaximum
public java.lang.String getMaximum()
setMaximum
public void setMaximum(java.lang.String maximum)
createValidator
protected javax.faces.validator.Validator createValidator()
throws javax.servlet.jsp.JspException
- Overrides:
createValidator
in class javax.faces.webapp.ValidatorTag
- Throws:
javax.servlet.jsp.JspException
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class javax.faces.webapp.ValidatorTag
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.