org.apache.myfaces.extensions.validator.core.interceptor
Class ViolationExceptionInterceptor

java.lang.Object
  extended by 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

Constructor Summary
ViolationExceptionInterceptor()
           
 
Method Summary
 boolean afterThrowing(javax.faces.component.UIComponent uiComponent, MetaDataEntry metaDataEntry, Object convertedObject, javax.faces.validator.ValidatorException validatorException, ValidationStrategy validatorExceptionSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViolationExceptionInterceptor

public ViolationExceptionInterceptor()
Method Detail

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 component
metaDataEntry - the meta data entry which contains the meta data of the property
convertedObject - the converted user input
validatorException - the current exception
validatorExceptionSource - validation strategy which threw the exception
Returns:
false to stop throwing the exception


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.