org.apache.myfaces.custom.emailvalidator
Class EmailValidator

java.lang.Object
  extended by org.apache.myfaces.custom.emailvalidator.EmailValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.validator.Validator

public class EmailValidator
extends java.lang.Object
implements javax.faces.validator.Validator

Version:
$Revision: 169649 $ $Date: 2005-05-11 17:47:12 +0200 (Wed, 11 May 2005) $
Author:
mwessendorf (latest modification by $Author: grantsmith $)

Field Summary
static java.lang.String EMAIL_MESSAGE_ID
          The message identifier of the FacesMessage to be created if the maximum length check fails.
static java.lang.String VALIDATOR_ID
          The standard converter id for this converter.
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
EmailValidator()
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 FacesMessage to be created if the maximum length check fails.

See Also:
Constant Field Values
Constructor Detail

EmailValidator

public EmailValidator()
Method Detail

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

Specified by:
validate in interface javax.faces.validator.Validator
Throws:
javax.faces.validator.ValidatorException