You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tom M. (JIRA)" <de...@myfaces.apache.org> on 2010/07/09 00:08:50 UTC

[jira] Commented: (EXTVAL-105) AbstractValidationInterceptor: call to processAfterValidation() even if object was not validated

    [ https://issues.apache.org/jira/browse/EXTVAL-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12886519#action_12886519 ] 

Tom M. commented on EXTVAL-105:
-------------------------------

SVN  r961924

> AbstractValidationInterceptor: call to processAfterValidation() even if object was not validated
> ------------------------------------------------------------------------------------------------
>
>                 Key: EXTVAL-105
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-105
>             Project: MyFaces Extensions Validator
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.3, 2.0.3, 1.1.3
>            Reporter: Tom M.
>            Priority: Minor
>             Fix For: 1.2.4-SNAPSHOT, 2.0.4-SNAPSHOT, 1.1.4-SNAPSHOT
>
>
> Is that correct: in case the uiComponent should not be processed and in consequence is not validated, the processing after validation is executed!?
> org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor:
>   try
>         {
>             ### if(processComponent(uiComponent)) ###
>             {
>                 convertedObject = transformValueForValidation(convertedObject);
>                 if(validateValue(convertedObject) &&
>                         processBeforeValidation(facesContext, uiComponent, convertedObject))
>                 {
>                     processValidation(facesContext, uiComponent, convertedObject);
>                 }
>             }
>         }
>         catch (ValidatorException e)
>         {
>             try
>             {
>                 //ViolationSeverityInterpreter might decide that it isn't an exception
>                 ExtValUtils.tryToThrowValidatorExceptionForComponent(uiComponent, e.getFacesMessage(), e);
>             }
>             catch (ValidatorException finalException)
>             {
>                 throw new ConverterException(e.getFacesMessage(), e);
>             }
>         }
>         finally
>         {
>             ### processAfterValidation(facesContext, uiComponent, convertedObject); ###
>             resetRendererInterceptorProperties(uiComponent);
>         }
>         

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.