public class BeanValidationEventListener extends Object implements SystemEventListener
BeanValidator.setValidationGroups(String) for all components in the current view. This allows to
 temporarily use different validationGroups or disabling validation if a specific UICommand or UIInput
 has invoked the form submit.| Constructor and Description | 
|---|
| BeanValidationEventListener(String validationGroups,
                           boolean disabled)Construct an instance of bean validation event listener based on the given validation groups and disabled state. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isListenerForSource(Object source)Only listens to  UIInputcomponents which have aBeanValidatorassigned. | 
| void | processEvent(SystemEvent event)Handle the  PreValidateEventandPostValidateEvent. | 
public BeanValidationEventListener(String validationGroups, boolean disabled)
validationGroups - The validation groups.disabled - The disabled state.public boolean isListenerForSource(Object source)
UIInput components which have a BeanValidator assigned.isListenerForSource in interface SystemEventListenerpublic void processEvent(SystemEvent event)
PreValidateEvent and PostValidateEvent.processEvent in interface SystemEventListenerCopyright © 2012–2020 OmniFaces. All rights reserved.