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

UIComponentBase.findComponent does not allow use the same id for a child component.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.10, 2.0.7, 2.1.1
    • 1.2.11, 2.0.10, 2.1.4
    • JSR-314
    • None

    Description

      Suppose the following tree

      x

      -x

      and the following search expression:

      x:x

      The current algorithm has at the end this line:

      return findBase.findComponent(expr.substring(separator + 1));

      The effect of this call is the component is not found, because the first x is swallowed, but the recursive call over the same component return the parent again, so the expected component is not returned, instead the parent.

      It is rare to use this kind of code, but with composite components, there are NamingContainer instances everywhere, which makes this issue more probable.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              lu4242 Leonardo Uribe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: