You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/05/12 05:39:41 UTC

[jira] Resolved: (MYFACES-2711) Application.createComponent(FacesContext,Resource) register listeners twice and call createComponent(String) directly

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

Leonardo Uribe resolved MYFACES-2711.
-------------------------------------

    Fix Version/s: 2.0.1-SNAPSHOT
       Resolution: Fixed

> Application.createComponent(FacesContext,Resource) register listeners twice and call createComponent(String) directly
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2711
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2711
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.1-SNAPSHOT
>
>
> In the method Application.createComponent(FacesContext,Resource), it does not take into account that Application.createComponent(String) scan for annotations and register listeners attached to the component. At the end of the method, we have a code that scan again for annotations, duplicate them.
> It was also found another bug. If it is used a wrapper for Application object, the method calls createComponent(String) directly. It should retrieve the Application instance from FacesContext and call the one of that instance, to ensure proper wrapping

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