|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase org.omnifaces.component.validator.ValidatorFamily org.omnifaces.component.validator.ValidateMultipleFields org.omnifaces.component.validator.ValidateAll
public class ValidateAll
ValidateAll validates if ALL of the given UIInput
components have been filled out. The
default message is
{0}: Please fill out all of those fields
For general usage instructions, refer ValidateMultipleFields
documentation.
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_TYPE
The standard component type. |
Fields inherited from class org.omnifaces.component.validator.ValidatorFamily |
---|
COMPONENT_FAMILY |
Fields inherited from class javax.faces.component.UIComponent |
---|
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Constructor Summary | |
---|---|
ValidateAll()
The default constructor sets the default message. |
Method Summary | |
---|---|
protected boolean |
validateValues(javax.faces.context.FacesContext context,
java.util.List<javax.faces.component.UIInput> inputs,
java.util.List<java.lang.Object> values)
Validate if all is filled out. |
Methods inherited from class org.omnifaces.component.validator.ValidateMultipleFields |
---|
collectComponents, collectValues, getComponents, getMessage, getShowMessageFor, isDisabled, isValidationFailed, setComponents, setDisabled, setMessage, setShowMessageFor, showMessage, validateComponents, validateHierarchy |
Methods inherited from class org.omnifaces.component.validator.ValidatorFamily |
---|
encodeChildren, getFamily, getRendersChildren, processDecodes, processUpdates, processValidators |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree |
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 COMPONENT_TYPE
Constructor Detail |
---|
public ValidateAll()
Method Detail |
---|
protected boolean validateValues(javax.faces.context.FacesContext context, java.util.List<javax.faces.component.UIInput> inputs, java.util.List<java.lang.Object> values)
validateValues
in class ValidateMultipleFields
context
- The faces context to work with.inputs
- The input components whose values are to be validated.values
- The values of the input components to be validated.
true
if validation is successful, otherwise false
(and thus show the message).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |