Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2203

UIXComponent does not check if in context when setupChildrenContext is called

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1-core
    • 2.0.1-core
    • Components
    • None

    Description

      UIXComponent has methods:
      setupVisitingContext
      setupChildrenEncodingContext
      setupEncodingContext
      setupChildrenVisitingContext

      and the corresponding tear down methods. The problem is that there is no code that validates that these methods have not been called more than once at a time. For example, if a component overrides the setupChildrenEncodingContext with code, and that method is called more than once, it may cause issues. By adding boolean flags and simple checks with warnings to the LOG it would be much easier for component authors to determine where the issue is instead of just allowing, silently, the excessive calls to be made.

      Attachments

        Activity

          People

            arobinson74 Andrew Robinson
            arobinson74 Andrew Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: