| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.validator.ValidatorBase
org.apache.myfaces.custom.equalvalidator.AbstractEqualValidator
public abstract class AbstractEqualValidator
A custom validator for validations against foreign component values. Unless otherwise specified, all attributes accept static values or EL expressions.
| Field Summary | |
|---|---|
| static String | EQUAL_MESSAGE_IDDeprecated. The message identifier of the FacesMessageto be created if
 the equal_for check fails. | 
| static String | VALIDATOR_IDDeprecated. 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 | 
| protected  javax.faces.render.Renderer | getRenderer(javax.faces.context.FacesContext context,
            javax.faces.component.UIComponent foreignComponent)Deprecated. | 
| abstract  void | setFor(String string)Deprecated. | 
|  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 | 
|---|
public static final String VALIDATOR_ID
The standard converter id for this converter.
public static final String EQUAL_MESSAGE_ID
The message identifier of the FacesMessage to be created if
 the equal_for check fails.
| Constructor Detail | 
|---|
public AbstractEqualValidator()
| Method Detail | 
|---|
public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent uiComponent,
                     Object value)
              throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorException
protected javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context,
                                                  javax.faces.component.UIComponent foreignComponent)
protected javax.faces.convert.Converter findUIOutputConverter(javax.faces.context.FacesContext facesContext,
                                                              javax.faces.component.UIComponent component)
protected Object getConvertedValueNonValid(javax.faces.context.FacesContext facesContext,
                                           javax.faces.component.UIComponent component)
                                    throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterExceptionpublic abstract String getFor()
public abstract void setFor(String string)
string - the foreign component_id, on which a value should be validated| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||