org.apache.myfaces.taglib.core
Class DelegateValidator

java.lang.Object
  extended by org.apache.myfaces.taglib.core.DelegateValidator
All Implemented Interfaces:
EventListener, StateHolder, Validator

public class DelegateValidator
extends Object
implements Validator, StateHolder

This class is used in conjunction with ValidatorImplTag. When a tag like this is in a jsp page: or The value of mybean could be already on the context, so this converter avoid creating a new variable and use the previous one.

Version:
$Revision: 600199 $ $Date: 2007-12-01 16:28:15 -0500 (Sat, 01 Dec 2007) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
DelegateValidator()
           
DelegateValidator(javax.el.ValueExpression id, javax.el.ValueExpression binding, String converterIdString)
           
 
Method Summary
 boolean isTransient()
           
 void restoreState(FacesContext facesContext, Object state)
           
 Object saveState(FacesContext facesContext)
           
 void setTransient(boolean arg0)
           
 void validate(FacesContext facesContext, UIComponent component, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateValidator

public DelegateValidator()

DelegateValidator

public DelegateValidator(javax.el.ValueExpression id,
                         javax.el.ValueExpression binding,
                         String converterIdString)
Method Detail

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder

restoreState

public void restoreState(FacesContext facesContext,
                         Object state)
Specified by:
restoreState in interface StateHolder

saveState

public Object saveState(FacesContext facesContext)
Specified by:
saveState in interface StateHolder

setTransient

public void setTransient(boolean arg0)
Specified by:
setTransient in interface StateHolder

validate

public void validate(FacesContext facesContext,
                     UIComponent component,
                     Object value)
              throws ValidatorException
Specified by:
validate in interface Validator
Throws:
ValidatorException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.