org.apache.cocoon.faces.taglib
Class ValidateDoubleRangeTag

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.taglib.TagSupport
          extended by org.apache.cocoon.faces.taglib.ValidatorTag
              extended by org.apache.cocoon.faces.taglib.ValidateDoubleRangeTag
All Implemented Interfaces:
Poolable, Recyclable, Component, LogEnabled, Tag

public class ValidateDoubleRangeTag
extends ValidatorTag

Version:
$Id: ValidateDoubleRangeTag.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.taglib.TagSupport
objectModel, parameters, parent, resolver
 
Fields inherited from interface org.apache.cocoon.taglib.Tag
EVAL_BODY, EVAL_PAGE, ROLE, SKIP_BODY
 
Constructor Summary
ValidateDoubleRangeTag()
           
 
Method Summary
protected  javax.faces.validator.Validator createValidator()
          Override to create custom validator
 int doStartTag(String namespaceURI, String localName, String qName, Attributes atts)
          Process the start tag for this instance.
 void recycle()
           
 void setMaximum(String maximum)
           
 void setMinimum(String minimum)
           
 
Methods inherited from class org.apache.cocoon.faces.taglib.ValidatorTag
getValidatorId, setValidatorId
 
Methods inherited from class org.apache.cocoon.taglib.TagSupport
doEndTag, findAncestorWithClass, findAttribute, getParent, setParent, setup
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidateDoubleRangeTag

public ValidateDoubleRangeTag()
Method Detail

setMaximum

public void setMaximum(String maximum)

setMinimum

public void setMinimum(String minimum)

doStartTag

public int doStartTag(String namespaceURI,
                      String localName,
                      String qName,
                      Attributes atts)
               throws SAXException
Description copied from class: TagSupport
Process the start tag for this instance.

The doStartTag method assumes that pageContext and parent have been set. It also assumes that any properties exposed as attributes have been set too. When this method is invoked, the body has not yet been evaluated.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class ValidatorTag
Returns:
EVAL_BODY or SKIP_BODY.
Throws:
SAXException

createValidator

protected javax.faces.validator.Validator createValidator()
Description copied from class: ValidatorTag
Override to create custom validator

Overrides:
createValidator in class ValidatorTag

recycle

public void recycle()
Specified by:
recycle in interface Recyclable
Overrides:
recycle in class ValidatorTag


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