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

Thomas Andraschko edited comment on MYFACES-4629 at 11/7/23 12:53 PM:
----------------------------------------------------------------------

What happens is that MyFaces always processes AJAX source and execute id's, 
which is tested above
Mojarra only processes the AJAX execute

so Mojarra directly invokes "form:input", whereas MyFaces invokes "form" and 
the form actually processes its child directly

our behavior is documented here: 
https://github.com/apache/myfaces/blob/816d4ae3b3d677752a33569231507a0cd7130c6b/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java#L220
the second hint is here: 
https://github.com/apache/myfaces/blob/816d4ae3b3d677752a33569231507a0cd7130c6b/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java#L732

so what happens in MF internally:
- we process `form`
- we know that the second id is a child of `form`, so we ignore it
- we rely on it that form process its childs

and here we go: PrimeFaces UITabPanel skips its children

i think the MyFaces behavior is good and we need to check if we can fix it in 
PF or not



was (Author: tandraschko):
What happens is that MyFaces always processes AJAX source and execute id's, 
which is tested above
Mojarra only processes the AJAX execute

our behavior is documented here: 
https://github.com/apache/myfaces/blob/816d4ae3b3d677752a33569231507a0cd7130c6b/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java#L220
the second hint is here: 
https://github.com/apache/myfaces/blob/816d4ae3b3d677752a33569231507a0cd7130c6b/impl/src/main/java/org/apache/myfaces/context/servlet/PartialViewContextImpl.java#L732

so what happens in MF internally:
- we process `form`
- we know that the second id is a child of `form`, so we ignore it
- we rely on it that form process its childs

and here we go: PrimeFaces UITabPanel skips its children

i think the MyFaces behavior is good and we need to check if we can fix it in 
PF or not


> Manual AJAX request does not process TabView correctly
> ------------------------------------------------------
>
>                 Key: MYFACES-4629
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4629
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 4.0.0, 4.0.1
>            Reporter: Manuel K
>            Priority: Major
>         Attachments: pf-tabview.zip
>
>
> When manually calling PrimeFaces.ajax.Request.handle the validationFailed 
> argument is not sent to the client.
> For more details and a reproducer please see 
> https://github.com/orgs/primefaces/discussions/123



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

Reply via email to