[ 
https://issues.apache.org/jira/browse/MYFACES-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonardo Uribe resolved MYFACES-2888.
-------------------------------------

         Assignee: Leonardo Uribe
    Fix Version/s: 2.0.2-SNAPSHOT
       Resolution: Fixed

I committed a fix for this one. The idea is take advantage of FacesWrapper 
interface to walk and assign the right instance, so the creation occur as 
expected. This should happen when the Abstract Syntax Tree is constructed.

Thanks to Nick Belaevski for the example, it helped a lot.

> Wrapping ComponentHandler in TagHandlerDelegateFactory conflicts with 
> implementation  
> --------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2888
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2888
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.2-SNAPSHOT
>            Reporter: Nick Belaevski
>            Assignee: Leonardo Uribe
>            Priority: Critical
>             Fix For: 2.0.2-SNAPSHOT
>
>         Attachments: jsf2test.zip
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to