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

Leonardo Uribe resolved MYFACES-3455.
-------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.1.6-SNAPSHOT)
                   2.1.6
                   2.0.12
         Assignee: Leonardo Uribe

I checked the code and the problem was caused because 
PostAddPreRemoveFromViewListener marked components to be removed. On a later 
request, the button is removed, so the event is not triggered and the view is 
not updated. The solution is just do not add to clientId removed list 
components backed by facelets algorithm and add them when preserve state is 
enabled. 

Thanks a lot for the test case. It helps a lot.
                
> [myfaces-2.1.6-SNAPSHOT] Using f:ajax within h:commandButton to dynamic 
> switch ui:include works not correct anymore
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3455
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3455
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.6-SNAPSHOT
>            Reporter: Rene O
>            Assignee: Leonardo Uribe
>            Priority: Blocker
>             Fix For: 2.0.12, 2.1.6
>
>         Attachments: jsftest.war
>
>
> If you click the ajaxified commandButton the ui:include switches. 
> After a few clicks, the switch doesn't work correct anymore. You must click 
> twice to switch the include, which is a bug.
> A testcase to reproduce this issue is attached. Note, that this issue doesn't 
> appear within myfaces 2.1.5
> http://localhost:8080/jsftest/navtest.jsf

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to