Package org.apache.myfaces.taglib.core
Class GenericMinMaxValidatorTag<T>
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.faces.webapp.ValidatorELTag
-
- org.apache.myfaces.taglib.core.ValidatorTag
-
- org.apache.myfaces.taglib.core.GenericMinMaxValidatorTag<T>
-
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
ValidateDoubleRangeTag
,ValidateLengthTag
,ValidateLongRangeTag
public abstract class GenericMinMaxValidatorTag<T> extends ValidatorTag
This is the base Tag for all ValidatorTags which got a minimum and a maimum attribute.- Since:
- 1.2
- Version:
- $Revision$ $Date$
- Author:
- Andreas Berger (latest modification by $Author$)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericMinMaxValidatorTag()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Validator
createValidator()
This method returns the Validator, you have to cast it to the correct type and apply the min and max values.protected abstract T
getValue(Object value)
Wrapper method.protected abstract boolean
isMinLTMax()
void
release()
void
setMaximum(javax.el.ValueExpression maximum)
void
setMinimum(javax.el.ValueExpression minimum)
-
Methods inherited from class org.apache.myfaces.taglib.core.ValidatorTag
setBinding, setValidatorId, setValidatorIdString
-
Methods inherited from class javax.faces.webapp.ValidatorELTag
doStartTag
-
-
-
-
Method Detail
-
setMinimum
public void setMinimum(javax.el.ValueExpression minimum)
-
setMaximum
public void setMaximum(javax.el.ValueExpression maximum)
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classValidatorTag
-
createValidator
protected Validator createValidator() throws javax.servlet.jsp.JspException
This method returns the Validator, you have to cast it to the correct type and apply the min and max values.- Overrides:
createValidator
in classValidatorTag
- Returns:
- Throws:
javax.servlet.jsp.JspException
-
isMinLTMax
protected abstract boolean isMinLTMax()
- Returns:
- true if min is lower than max
-
-