org.apache.myfaces.custom.equalvalidator
Class AbstractEqualValidator

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

Deprecated. use myfaces commons mcv:validateEqual instead

@JSFValidator(name="t:validateEqual",
              clazz="org.apache.myfaces.custom.equalvalidator.EqualValidator",
              tagClass="org.apache.myfaces.custom.equalvalidator.ValidateEqualTag",
              serialuidtag="-3249115551944863108L")
public abstract class AbstractEqualValidator
extends org.apache.myfaces.validator.ValidatorBase

A custom validator for validations against foreign component values. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (miƩ, 03 sep 2008) $
Author:
mwessendorf (latest modification by $Author: lu4242 $)

Field Summary
static String EQUAL_MESSAGE_ID
          Deprecated. The message identifier of the FacesMessage to be created if the equal_for check fails.
static String VALIDATOR_ID
          Deprecated. The standard converter id for this converter.
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
AbstractEqualValidator()
          Deprecated.  
 
Method Summary
protected  javax.faces.convert.Converter findUIOutputConverter(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Deprecated.  
protected  Object getConvertedValueNonValid(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Deprecated.  
abstract  String getFor()
          Deprecated. 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.
abstract  String getForId()
          Deprecated. the id of the foreign component, which is needed for the validation
protected  javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context, javax.faces.component.UIComponent foreignComponent)
          Deprecated.  
abstract  void setFor(String string)
          Deprecated.  
abstract  void setForId(String string)
          Deprecated. the id of the foreign component, which is needed for the validation
 void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object value)
          Deprecated.  
 
Methods inherited from class org.apache.myfaces.validator.ValidatorBase
getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStringValue, getSummaryMessage, getValueExpression, isTransient, restoreAttachedState, restoreState, saveAttachedState, saveState, 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 String VALIDATOR_ID
Deprecated. 

The standard converter id for this converter.

See Also:
Constant Field Values

EQUAL_MESSAGE_ID

public static final String EQUAL_MESSAGE_ID
Deprecated. 

The message identifier of the FacesMessage to be created if the equal_for check fails.

See Also:
Constant Field Values
Constructor Detail

AbstractEqualValidator

public AbstractEqualValidator()
Deprecated. 
Method Detail

validate

public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent uiComponent,
                     Object value)
              throws javax.faces.validator.ValidatorException
Deprecated. 
Throws:
javax.faces.validator.ValidatorException

getRenderer

protected javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context,
                                                  javax.faces.component.UIComponent foreignComponent)
Deprecated. 

findUIOutputConverter

protected javax.faces.convert.Converter findUIOutputConverter(javax.faces.context.FacesContext facesContext,
                                                              javax.faces.component.UIComponent component)
Deprecated. 

getConvertedValueNonValid

protected Object getConvertedValueNonValid(javax.faces.context.FacesContext facesContext,
                                           javax.faces.component.UIComponent component)
                                    throws javax.faces.convert.ConverterException
Deprecated. 
Throws:
javax.faces.convert.ConverterException

getFor

public abstract String getFor()
Deprecated. 
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.

Returns:
the foreign component_id, on which a value should be validated

setFor

public abstract void setFor(String string)
Deprecated. 
Parameters:
string - the foreign component_id, on which a value should be validated

getForId

@JSFProperty(faceletsOnly=true)
public abstract String getForId()
Deprecated. 
the id of the foreign component, which is needed for the validation

Returns:

setForId

public abstract void setForId(String string)
Deprecated. 
the id of the foreign component, which is needed for the validation

Parameters:
string -


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