This class is responsible for adding default validators and/or validators that wrap multiple
EditableValueHolder instances within the view.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ComponentValidators.
Generic information container for a validator at a particular nesting Level. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | COMPONENT_VALIDATORS
Key within the |
| private LinkedList | validatorStack
Stack of |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addDefaultValidatorsToComponent(FacesContext
the ctx, EditableValueHolder FacesContext for the current requestthe component receiving the editableValueHolder)Validators
Creates and installs default validators, if any, into the argument |
| public void | addValidators(FacesContext
the ctx, EditableValueHolder FacesContext for the current requestthe component receiving the editableValueHolder)Validators
Based on the |
| private static void | addValidatorsToComponent(FacesContext
the ctx, Collection<String> FacesContext for the current requestthe validator IDs to be added to the validatorIds, EditableValueHolder EditableValueHolderthe target component to which the validators installed editableValueHolder, LinkedList<ComponentValidators.current stack of ValidatorInfo instances validatorStack
Install the validators, if not already present on the component, using the IDs included in |
| public static ComponentValidators | Returns: aComponentValidators instance for processing a view request. If createIfNull is
false and no ComponentValidators has been created, this method will return
nullthe context, boolean FacesContext for the current requestflag indicating whether or not a createIfNull)ComponentValidators instance should be created or
not
|
| public void | |
| public void | pushValidatorInfo(ComponentValidators.
validator info info
Pushes the provided |
| COMPONENT_VALIDATORS | back to summary |
|---|---|
| private static final String COMPONENT_VALIDATORS Key within the | |
| validatorStack | back to summary |
|---|---|
| private LinkedList<ComponentValidators. Stack of | |
| ComponentValidators | back to summary |
|---|---|
| public ComponentValidators() | |
| addDefaultValidatorsToComponent | back to summary |
|---|---|
| public static void addDefaultValidatorsToComponent(FacesContext ctx, EditableValueHolder editableValueHolder)
Creates and installs default validators, if any, into the argument
| |
| addValidators | back to summary |
|---|---|
| public void addValidators(FacesContext ctx, EditableValueHolder editableValueHolder)
Based on the
| |
| addValidatorsToComponent | back to summary |
|---|---|
| private static void addValidatorsToComponent(FacesContext ctx, Collection<String> validatorIds, EditableValueHolder editableValueHolder, LinkedList<ComponentValidators.
Install the validators, if not already present on the component, using the IDs included in
| |
| getValidators | back to summary |
|---|---|
public static ComponentValidators getValidators(FacesContext context, boolean createIfNull)
| |
| popValidatorInfo | back to summary |
|---|---|
| public void popValidatorInfo()
Pops the last | |
| pushValidatorInfo | back to summary |
|---|---|
| public void pushValidatorInfo(ComponentValidators.
Pushes the provided
| |
| Modifier and Type | Field and Description |
|---|---|
| private final FaceletContext | |
| private final boolean | |
| private final ValidatorHandler | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public boolean |
| ctx | back to summary |
|---|---|
| private final FaceletContext ctx | |
| enabled | back to summary |
|---|---|
| private final boolean enabled | |
| owner | back to summary |
|---|---|
| private final ValidatorHandler owner | |
| validatorId | back to summary |
|---|---|
| private final String validatorId | |
| ValidatorInfo | back to summary |
|---|---|
| public ValidatorInfo(FaceletContext ctx, ValidatorHandler owner) | |
| applyAttributes | back to summary |
|---|---|
| public void applyAttributes(Validator<T> v) | |
| getValidatorId | back to summary |
|---|---|
| public String getValidatorId() | |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() | |