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

Leonardo Uribe resolved MYFACES-3200.
-------------------------------------

    Resolution: Fixed

I checked it again and it is true. Some days ago we did a fix over 
PostAddToViewEvent publishing code that call pushComponentToEL. The effect of 
this code is call UIComponent.isCompositeComponent(), that call 
getAttributes().containsKey(), but since only the tree structure is being 
restored, it returns false. The solution is be sure the events can be 
propagates before publish/traverse and add another var that checks if the 
composite component has been set, to ensure this is called after the component 
is completely restored. Now it works, but please feel free to reopen it as many 
times as necessary until get this one solved.

> All values of self-defined composite-component attributes disappear 
> unexpected.
> -------------------------------------------------------------------------------
>
>                 Key: MYFACES-3200
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3200
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.2-SNAPSHOT
>         Environment: Java 6, Tomcat 6, latest SNAPSHOT of myfaces-2.1.2 
> (30.06.2011)
>            Reporter: Rene O
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.8, 2.1.2
>
>         Attachments: jsf2testcase.war, jsf2testcasewithoutrichfaces.war, 
> jsftest.war
>
>
> A testcase to reproduce this issue is attached. 
> Steps to reproduce this issue:
> 1. http://localhost:8080/jsf2testcase/components.jsf
> 2. you can see the value of one of the attributes of the self-defined 
> composite component at 'Panel1'
> 2. click 'Panel2'
> 3. click 'Panel1'
> 4. value at 'Panel1' is not shown anymore. (if you refresh the page with 'F5' 
> after that, the value is there again)
> Note:
> This behaviour occurs with the latest myfaces-2.1.2-SNAPSHOT (30.06.2011)
> With an older version of myfaces-2.1.2-SNAPSHOT (22.06.2011) and with 
> myfaces-2.1.1 everything works as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to