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

Wrapping ComponentHandler in TagHandlerDelegateFactory conflicts with implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.2-SNAPSHOT
    • 2.0.2
    • JSR-314
    • None

    Description

      When implementing my own TagHandlerDelegateFactory that wraps ComponentHandler classes (this is necessary to handle custom behaviors attachments) I encountered two problems:

      1) StackOverflowError because TagHandlerDelegateFactory factory is called again in the constructor of ComponentHandler, in order to initialize "helper" field, however I don't need it for delegation
      2) Composite components are broken because implementation is checking for marker interfaces that are shadowed by wrappers

      Attachments

        1. jsf2test.zip
          6 kB
          Nick Belaevski

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: