org.apache.myfaces.commons.validator
Class EmailValidator
java.lang.Object
   org.apache.myfaces.commons.validator.ValidatorBase
org.apache.myfaces.commons.validator.ValidatorBase
       org.apache.myfaces.commons.validator.EmailValidator
org.apache.myfaces.commons.validator.EmailValidator
- All Implemented Interfaces: 
- java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.validator.Validator
- @JSFValidator(name="mcv:validateEmail",
              tagClass="org.apache.myfaces.commons.validator.ValidateEmailTag",
              serialuidtag="6041422002721046221L")
public class EmailValidator
- extends ValidatorBase
A custom validator for email address format, based upons Jakarta Commons.
 
 Unless otherwise specified, all attributes accept static values or EL expressions.
- Version:
- $Revision: 1186881 $ $Date: 2011-10-20 11:13:22 -0500 (Thu, 20 Oct 2011) $
- Author:
- mwessendorf (latest modification by $Author: struberg $)
| Field Summary | 
| static java.lang.String | EMAIL_MESSAGE_IDThe message identifier of the
 FacesMessageto be created if
 the maximum length check fails. | 
| static java.lang.String | VALIDATOR_IDThe standard converter id for this converter.
 | 
 
| Fields inherited from interface javax.faces.validator.Validator | 
| NOT_IN_RANGE_MESSAGE_ID | 
 
 
| Method Summary | 
|  void | validate(javax.faces.context.FacesContext facesContext,
         javax.faces.component.UIComponent uiComponent,
         java.lang.Object value)methode that validates an email-address.
 | 
 
| Methods inherited from class org.apache.myfaces.commons.validator.ValidatorBase | 
| clearInitialState, getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStateHelper, getStateHelper, getStringValue, getSummaryMessage, getValueExpression, initialStateMarked, isTransient, markInitialState, restoreAttachedState, restoreState, saveAttachedState, saveState, setDetailMessage, setMessage, setSummaryMessage, setTransient, setValueExpression | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
VALIDATOR_ID
public static final java.lang.String VALIDATOR_ID
- The standard converter id for this converter. - 
 - 
- See Also:
- Constant Field Values
 
EMAIL_MESSAGE_ID
public static final java.lang.String EMAIL_MESSAGE_ID
- The message identifier of the - FacesMessageto be created if
 the maximum length check fails.
 - 
 - 
- See Also:
- Constant Field Values
 
EmailValidator
public EmailValidator()
validate
public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent uiComponent,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException
- methode that validates an email-address.
 it uses the commons-validator
 
- 
- Throws:
- javax.faces.validator.ValidatorException
 
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.