br.com.caelum.stella.faces.validation
Class StellaCNPJValidatorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.faces.webapp.ValidatorELTag
          extended by br.com.caelum.stella.faces.validation.StellaCNPJValidatorTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class StellaCNPJValidatorTag
extends javax.faces.webapp.ValidatorELTag

Associa um TLD (Descritor de Biblioteca de Tag) a um validador de CNPJ (StellaCNPJValidator).

Author:
Leonardo Bessa
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
StellaCNPJValidatorTag()
           
 
Method Summary
protected  javax.faces.validator.Validator createValidator()
           
 void release()
           
 void setFormatted(javax.el.ValueExpression formatted)
           
 
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

StellaCNPJValidatorTag

public StellaCNPJValidatorTag()
Method Detail

createValidator

protected javax.faces.validator.Validator createValidator()
                                                   throws javax.servlet.jsp.JspException
Specified by:
createValidator in class javax.faces.webapp.ValidatorELTag
Returns:
StellaCNPJValidator
Throws:
javax.servlet.jsp.JspException

setFormatted

public void setFormatted(javax.el.ValueExpression formatted)
See Also:
StellaCNPJValidator.setFormatted(boolean)

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2008 Caelum. All Rights Reserved.