org.apache.myfaces.trinidaddemo.convertValidate
Class PasswordValidator

java.lang.Object
  extended by org.apache.myfaces.trinidaddemo.convertValidate.PasswordValidator
All Implemented Interfaces:
EventListener, javax.faces.validator.Validator, ClientValidator

public class PasswordValidator
extends Object
implements javax.faces.validator.Validator, ClientValidator

Password validator - this is an incredibly simple password validator that makes sure there's at least one number in the password.


Field Summary
static String VALIDATOR_ID
           
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
PasswordValidator()
           
 
Method Summary
 Collection<String> getClientImportNames()
           
 String getClientLibrarySource(javax.faces.context.FacesContext context)
           
 String getClientScript(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 String getClientValidation(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
           
 
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 String VALIDATOR_ID
See Also:
Constant Field Values
Constructor Detail

PasswordValidator

public PasswordValidator()
Method Detail

validate

public void validate(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component,
                     Object value)
              throws javax.faces.validator.ValidatorException
Specified by:
validate in interface javax.faces.validator.Validator
Throws:
javax.faces.validator.ValidatorException

getClientValidation

public String getClientValidation(javax.faces.context.FacesContext context,
                                  javax.faces.component.UIComponent component)
Specified by:
getClientValidation in interface ClientValidator

getClientImportNames

public Collection<String> getClientImportNames()
Specified by:
getClientImportNames in interface ClientValidator

getClientLibrarySource

public String getClientLibrarySource(javax.faces.context.FacesContext context)
Specified by:
getClientLibrarySource in interface ClientValidator

getClientScript

public String getClientScript(javax.faces.context.FacesContext context,
                              javax.faces.component.UIComponent component)
Specified by:
getClientScript in interface ClientValidator


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.