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] Created: (EXTVAL-105) AbstractValidationInterceptor: call to processAfterValidation() even if object was not validated
Date Thu, 08 Jul 2010 08:15:51 GMT
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: 2.0.3
            Reporter: Tom M.
            Priority: Minor


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