You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2022/12/19 15:16:00 UTC

[jira] [Commented] (MYFACES-4537) Investigate Inner / Outer Ajax Tags

    [ https://issues.apache.org/jira/browse/MYFACES-4537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17649368#comment-17649368 ] 

Thomas Andraschko commented on MYFACES-4537:
--------------------------------------------

I added a test, which verifies now that both f:ajax are chained: AjaxBehaviorRenderTestCase#testAjax7
we need to adjust this if they should really not be chained

> Investigate Inner / Outer Ajax Tags
> -----------------------------------
>
>                 Key: MYFACES-4537
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4537
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 4.0.0-RC3
>            Reporter: Volodymyr Siedlecki
>            Assignee: Thomas Andraschko
>            Priority: Major
>
> Sprung from MYFACES-4514.
> Earlier spec mention: 
> {code:java}
> <f:ajax>
>   <h:commandButton id=”button1”>
>     <f:ajax/>
>   </h:commandButton>
> </f:ajax>
> {code}"
> The accompanying text indicates that "the inner <f:ajax/> would apply to “button1”. The outer (wrapping) <f:ajax> would not be applied, since it is the same type of submitting behavior (AjaxBehavior) and the same event type (action)." 
> MyFaces had a return to avoid adding a second behavior, but that was removed in 4514. We'll have to look at the case some more and see what the expected behavior her should be.
> Thomas asked for clarification here:   
> https://github.com/jakartaee/faces/issues/1756#issuecomment-1357725710



--
This message was sent by Atlassian Jira
(v8.20.10#820010)