|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.validator.RequiredValidator
public class RequiredValidator
A Validator that checks for an empty value in the same way that UIInput checks for a value. In fact, this validator is equivalent to setting the required attribute on the input component to true.
| Field Summary | |
|---|---|
static java.lang.String |
VALIDATOR_ID
The standard converter id for this converter. |
| Fields inherited from interface javax.faces.validator.Validator |
|---|
NOT_IN_RANGE_MESSAGE_ID |
| Constructor Summary | |
|---|---|
RequiredValidator()
|
|
| Method Summary | |
|---|---|
void |
validate(FacesContext context,
UIComponent component,
java.lang.Object value)
Verify that the converted object value is not null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VALIDATOR_ID
The standard converter id for this converter.
| Constructor Detail |
|---|
public RequiredValidator()
| Method Detail |
|---|
public void validate(FacesContext context,
UIComponent component,
java.lang.Object value)
validate in interface Validatorcontext - FacesContext for the request we are processingcomponent - UIComponent we are checking for correctnessvalue - the value to validate
ValidatorException - if validation fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to
Generated on 10-February-2011 12:41