org.apache.myfaces.custom.equalvalidator
Class EqualValidator

java.lang.Object
  extended by org.apache.myfaces.validator.ValidatorBase
      extended by org.apache.myfaces.custom.equalvalidator.AbstractEqualValidator
          extended by org.apache.myfaces.custom.equalvalidator.EqualValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator

public class EqualValidator
extends AbstractEqualValidator


Field Summary
static java.lang.String VALIDATOR_ID
           
 
Fields inherited from class org.apache.myfaces.custom.equalvalidator.AbstractEqualValidator
EQUAL_MESSAGE_ID
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
EqualValidator()
           
 
Method Summary
 java.lang.String getFor()
          the id of the foreign component, which is needed for the validation In JSF 2.0 facelets mode is used to identify the components this validator should be applied to when using composite components.
 java.lang.String getForId()
          the id of the foreign component, which is needed for the validation
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setFor(java.lang.String forParam)
           
 void setForId(java.lang.String forId)
          the id of the foreign component, which is needed for the validation
 
Methods inherited from class org.apache.myfaces.custom.equalvalidator.AbstractEqualValidator
findUIOutputConverter, getConvertedValueNonValid, getRenderer, validate
 
Methods inherited from class org.apache.myfaces.validator.ValidatorBase
getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStringValue, getSummaryMessage, getValueExpression, isTransient, restoreAttachedState, saveAttachedState, setDetailMessage, setMessage, setSummaryMessage, setTransient, setValueExpression
 
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
See Also:
Constant Field Values
Constructor Detail

EqualValidator

public EqualValidator()
Method Detail

getFor

public java.lang.String getFor()
Description copied from class: AbstractEqualValidator
the id of the foreign component, which is needed for the validation In JSF 2.0 facelets mode is used to identify the components this validator should be applied to when using composite components. Please use forId in that case instead.

Specified by:
getFor in class AbstractEqualValidator
Returns:
the foreign component_id, on which a value should be validated

setFor

public void setFor(java.lang.String forParam)
Specified by:
setFor in class AbstractEqualValidator
Parameters:
forParam - the foreign component_id, on which a value should be validated

getForId

public java.lang.String getForId()
Description copied from class: AbstractEqualValidator
the id of the foreign component, which is needed for the validation

Specified by:
getForId in class AbstractEqualValidator
Returns:

setForId

public void setForId(java.lang.String forId)
Description copied from class: AbstractEqualValidator
the id of the foreign component, which is needed for the validation

Specified by:
setForId in class AbstractEqualValidator

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class ValidatorBase

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class ValidatorBase


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