org.apache.myfaces.extensions.validator.core.interceptor
Class ViolationExceptionInterceptor
java.lang.Object
org.apache.myfaces.extensions.validator.core.interceptor.ViolationExceptionInterceptor
- All Implemented Interfaces:
- ValidationExceptionInterceptor
@InvocationOrder(value=200)
public class ViolationExceptionInterceptor
- extends Object
- implements ValidationExceptionInterceptor
This validation-exception interceptor sets the valid property of the uiComponent to false,
if it is a blocking severity.
- Since:
- x.x.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViolationExceptionInterceptor
public ViolationExceptionInterceptor()
afterThrowing
public boolean afterThrowing(javax.faces.component.UIComponent uiComponent,
MetaDataEntry metaDataEntry,
Object convertedObject,
javax.faces.validator.ValidatorException validatorException,
ValidationStrategy validatorExceptionSource)
- Specified by:
afterThrowing
in interface ValidationExceptionInterceptor
- Parameters:
uiComponent
- the current componentmetaDataEntry
- the meta data entry which contains the meta data of the propertyconvertedObject
- the converted user inputvalidatorException
- the current exceptionvalidatorExceptionSource
- validation strategy which threw the exception
- Returns:
- false to stop throwing the exception
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.