Uploaded image for project: 'MyFaces Extensions Validator'
  1. MyFaces Extensions Validator
  2. EXTVAL-105

AbstractValidationInterceptor: call to processAfterValidation() even if object was not validated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.3, 2.0.3, 1.1.3
    • 1.2.4, 2.0.4, 1.1.4
    • Core
    • None

    Description

      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
      {

          1. 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); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            tom_m Tom M.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: