myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom M. (JIRA)" <...@myfaces.apache.org>
Subject [jira] Issue Comment Edited: (EXTVAL-105) AbstractValidationInterceptor: call to processAfterValidation() even if object was not validated
Date Thu, 08 Jul 2010 22:10:50 GMT

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

Tom M. edited comment on EXTVAL-105 at 7/8/10 6:09 PM:
-------------------------------------------------------

Fixed by Gerhard Petracek - SVN  r961924

      was (Author: tom_m):
    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.


Mime
View raw message