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

Self nested Composite Component leads to EL Stack Overflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.2
    • 2.0.15, 2.1.9
    • None
    • None
    • Windows

    Description

      If the same Composite Component is used inside itself, e.g. as child of an ui:include that is included in the Composite Component, an StackOverflow happens, if an EL Expression is refering CC interface attributes.

      The use case is a CC to include a facelet, given by name. If the included facelet uses the same CC to include another facelet, "CompositeComponentELUtils.getCompositeComponentBasedOnLocation(..)" does always find the same CC, which leads to an endless loop.

      Please see the attached file for an example of the issue.

      Attachments

        1. TestStackOverflow.war
          3.37 MB
          Michael Dietrich
        2. MYFACES-3383-1.patch
          111 kB
          Leonardo Uribe

        Activity

          People

            lu4242 Leonardo Uribe
            m.dietrich Michael Dietrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: