Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3125

ValidatorTagHandlerDelegate does not invoke next handler in partial processing mode, which damages the component structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.6, 2.1.0
    • None
    • None

    Description

      In my particular example (which I may or may not be able to extract and reproduce), I have:

      <h:form>
      <f:validateBean>
      <h:inputText />
      ...
      </f:validateBean>
      </h:form>

      In this example, the form's children are marked for deletion; then, when ValidatorTHDelegate sees that the parent is not a new component, it bails out, thus failing to invoke the next handler and re-add the child components. When the deletion is finalized the form is left with no children, which incidentally makes it impossible to complete the AJAX request as designed, since the component to re-render no longer exists! I believe this would only be a problem in wrapping mode. I have verified that removing the validateBean tag causes the form's structure to be preserved.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            mbenson Matthew Jason Benson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: