org.books.view.component
Class RegexValidatorTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.faces.webapp.ValidatorELTag
org.books.view.component.RegexValidatorTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class RegexValidatorTag
- extends javax.faces.webapp.ValidatorELTag
CAS Enterprise Application Development mit Java EE (EADJ) - 2007
Modul: Web-Tier (JSF)
Uebung: 10 (Custom Validator and Converter Tags)
Beschreibung:
Diese Klasse implementiert einen Validator Tag fuer Reulaere Ausdruecke.
Copyright (c) 2007 bouquet dot ch, 3032 Hinterkappelen. All rights reseved.
- Version:
- 1.0 - 11.05.2007
- Author:
- Marc Bouquet ( marc at bouquet dot ch, Switzerland )
- See Also:
@link{javax.faces.webapp.ValidatorELTag}
,
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 |
Method Summary |
protected javax.faces.validator.Validator |
createValidator()
Creates a validator instance. |
void |
release()
Releases the resources. |
void |
setPattern(javax.el.ValueExpression pattern)
Sets the pattern of the regular expression. |
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 |
RegexValidatorTag
public RegexValidatorTag()
createValidator
protected javax.faces.validator.Validator createValidator()
throws javax.servlet.jsp.JspException
- Creates a validator instance.
- Specified by:
createValidator
in class javax.faces.webapp.ValidatorELTag
- Throws:
javax.servlet.jsp.JspException
setPattern
public void setPattern(javax.el.ValueExpression pattern)
- Sets the pattern of the regular expression.
- Parameters:
pattern
- ValueExpression
release
public void release()
- Releases the resources.
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.