org.apache.myfaces.taglib.core
Class ValidateLongRangeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.faces.webapp.ValidatorELTag
          extended by org.apache.myfaces.taglib.core.ValidatorTag
              extended by org.apache.myfaces.taglib.core.GenericMinMaxValidatorTag<Long>
                  extended by org.apache.myfaces.taglib.core.ValidateLongRangeTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ValidateLongRangeTag
extends GenericMinMaxValidatorTag<Long>

Version:
$Revision: 701829 $ $Date: 2008-10-05 12:06:02 -0500 (Sun, 05 Oct 2008) $
Author:
Thomas Spiegl (latest modification by $Author: slessard $), Manfred Geiler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.myfaces.taglib.core.GenericMinMaxValidatorTag
_max, _maximum, _min, _minimum
 
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
ValidateLongRangeTag()
           
 
Method Summary
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  Long getValue(Object value)
          Wrapper method.
protected  boolean isMinLTMax()
           
 
Methods inherited from class org.apache.myfaces.taglib.core.GenericMinMaxValidatorTag
release, setMaximum, setMinimum
 
Methods inherited from class org.apache.myfaces.taglib.core.ValidatorTag
setBinding, setValidatorId, setValidatorIdString
 
Methods inherited from class javax.faces.webapp.ValidatorELTag
doStartTag
 
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
 

Constructor Detail

ValidateLongRangeTag

public ValidateLongRangeTag()
Method Detail

createValidator

protected Validator createValidator()
                             throws javax.servlet.jsp.JspException
Description copied from class: GenericMinMaxValidatorTag
This method returns the Validator, you have to cast it to the correct type and apply the min and max values.

Overrides:
createValidator in class GenericMinMaxValidatorTag<Long>
Throws:
javax.servlet.jsp.JspException

isMinLTMax

protected boolean isMinLTMax()
Specified by:
isMinLTMax in class GenericMinMaxValidatorTag<Long>
Returns:
true if min is lower than max

getValue

protected Long getValue(Object value)
Description copied from class: GenericMinMaxValidatorTag
Wrapper method.

Specified by:
getValue in class GenericMinMaxValidatorTag<Long>
Returns:


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.