You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Heinen (JIRA)" <de...@myfaces.apache.org> on 2012/05/08 12:11:50 UTC

[jira] [Created] (MYFACES-3541) actionListener of composite component not working with dynamic includes

Michael Heinen created MYFACES-3541:
---------------------------------------

             Summary: actionListener of composite component not working with dynamic includes 
                 Key: MYFACES-3541
                 URL: https://issues.apache.org/jira/browse/MYFACES-3541
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.1.7
         Environment: tomcat 6.0.35
            Reporter: Michael Heinen


I implemented a wizard with ui:includes.
The current page of the wizard is included via a dynamic src attribute with an EL expression pointing to the right page.
The second page of this wizard contains a composite component with an actionListener which is defined in the composite:interface.
This actionListener is working well when this page of the wizard is visited the first time!
The actionListener is not called anymore if user navigates back and forth in the wizard, which results in other included components and a changed component tree.

I'll attach a sample web archive and describe the steps in detail.

--
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

        

[jira] [Commented] (MYFACES-3541) actionListener of composite component not working with dynamic includes

Posted by "Michael Heinen (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273140#comment-13273140 ] 

Michael Heinen commented on MYFACES-3541:
-----------------------------------------

I verified Snapshot 2.1.8-20120510.234313-65 successfully.
Thanks a lot Leonardo for the quick fix!
                
> actionListener of composite component not working with dynamic includes 
> ------------------------------------------------------------------------
>
>                 Key: MYFACES-3541
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3541
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.7
>         Environment: tomcat 6.0.35
>            Reporter: Michael Heinen
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.14, 2.1.8
>
>         Attachments: zIncludeCC.war
>
>
> I implemented a wizard with ui:includes.
> The current page of the wizard is included via a dynamic src attribute with an EL expression pointing to the right page.
> The second page of this wizard contains a composite component with an actionListener which is defined in the composite:interface.
> This actionListener is working well when this page of the wizard is visited the first time!
> The actionListener is not called anymore if user navigates back and forth in the wizard, which results in other included components and a changed component tree.
> I'll attach a sample web archive and describe the steps in detail.

--
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

        

[jira] [Resolved] (MYFACES-3541) actionListener of composite component not working with dynamic includes

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3541.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.8
                   2.0.14
         Assignee: Leonardo Uribe

I checked it carefully and the problem is all facelets components requires to be excluded for the registration done with PreRemoveFromViewEvent. It seems I forget to include the component that holds the composite component markup. Fortunately the fix is very simple and involves just a few lines. Thanks a lot to Michael Heinen for the test, this is one of those that are very difficult to understand or reproduce without a detailes test. It is a valuable contribution.
                
> actionListener of composite component not working with dynamic includes 
> ------------------------------------------------------------------------
>
>                 Key: MYFACES-3541
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3541
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.7
>         Environment: tomcat 6.0.35
>            Reporter: Michael Heinen
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.14, 2.1.8
>
>         Attachments: zIncludeCC.war
>
>
> I implemented a wizard with ui:includes.
> The current page of the wizard is included via a dynamic src attribute with an EL expression pointing to the right page.
> The second page of this wizard contains a composite component with an actionListener which is defined in the composite:interface.
> This actionListener is working well when this page of the wizard is visited the first time!
> The actionListener is not called anymore if user navigates back and forth in the wizard, which results in other included components and a changed component tree.
> I'll attach a sample web archive and describe the steps in detail.

--
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