org.apache.myfaces.trinidadinternal.validator
Class ByteLengthValidator

java.lang.Object
  extended by org.apache.myfaces.trinidad.validator.ByteLengthValidator
      extended by org.apache.myfaces.trinidadinternal.validator.ByteLengthValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator, org.apache.myfaces.trinidad.validator.ClientValidator

public class ByteLengthValidator
extends org.apache.myfaces.trinidad.validator.ByteLengthValidator
implements org.apache.myfaces.trinidad.validator.ClientValidator

Enables byte length validation at the client side.

Author:
The Oracle ADF Faces Team

Field Summary
 
Fields inherited from class org.apache.myfaces.trinidad.validator.ByteLengthValidator
MAXIMUM_MESSAGE_ID, VALIDATOR_ID
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
ByteLengthValidator()
           
 
Method Summary
 java.util.Collection<java.lang.String> getClientImportNames()
          
 java.lang.String getClientLibrarySource(javax.faces.context.FacesContext context)
           
 java.lang.String getClientScript(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          
 java.lang.String getClientValidation(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          
 
Methods inherited from class org.apache.myfaces.trinidad.validator.ByteLengthValidator
equals, getEncoding, getHintMaximum, getLengthValidationFailureMessage, getMaximum, getMessageDetailMaximum, getValueBinding, hashCode, isTransient, restoreState, saveState, setEncoding, setHintMaximum, setMaximum, setMessageDetailMaximum, setTransient, setValueBinding, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteLengthValidator

public ByteLengthValidator()
Method Detail

getClientLibrarySource

public java.lang.String getClientLibrarySource(javax.faces.context.FacesContext context)
Specified by:
getClientLibrarySource in interface org.apache.myfaces.trinidad.validator.ClientValidator

getClientScript

public java.lang.String getClientScript(javax.faces.context.FacesContext context,
                                        javax.faces.component.UIComponent component)

Specified by:
getClientScript in interface org.apache.myfaces.trinidad.validator.ClientValidator

getClientValidation

public java.lang.String getClientValidation(javax.faces.context.FacesContext context,
                                            javax.faces.component.UIComponent component)

Specified by:
getClientValidation in interface org.apache.myfaces.trinidad.validator.ClientValidator

getClientImportNames

public java.util.Collection<java.lang.String> getClientImportNames()

Specified by:
getClientImportNames in interface org.apache.myfaces.trinidad.validator.ClientValidator


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.