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

Thomas Andraschko commented on MYFACES-4690:
--------------------------------------------

Ok, TBH i dont now if its a bug in MyFaces or Mojarra
or both handle it not correct for 100%
the XML above shows our "consequential error"

but on the other hand, your usecase is not valid
update="" takes a expression and not a whole clientId. 
Currently you do a relative lookup, which will be triggered from commandButton, 
which actually translates to:
{code:xml}
update="testDialog">
{code}
and is this relative context, it solves to: "testDialog:testDialog".
You actually like to resolve to "testDialog", as "testDialog:testDialog" doesnt 
even exist in the rendered markup.

You should actually use:
{code:xml}
update=":#{cc.clientId} #{cc.attrs.update}">
{code}






> Facelet Compatibility: AJAX update fails for components in composite 
> components with same ID
> --------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4690
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4690
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 4.0.2
>            Reporter: Manuel K
>            Priority: Major
>         Attachments: image-2024-11-05-08-20-31-951.png, 
> image-2024-11-05-08-25-07-002.png, primefaces-test-dialog-cc-id-problem.zip
>
>
> Reproducer: [^primefaces-test-dialog-cc-id-problem.zip]
> Clicking on show dialog opens the dialog, but clicking on cancel does not 
> close the dialog even though it should.
> Composite component representing PrimeFaces dialog added to page:
> !image-2024-11-05-08-20-31-951.png!
> "dialogTest" composite component contains another composite component with 
> the same ID:
> !image-2024-11-05-08-25-07-002.png!
> If the underlined ID "testDialog" is changed to something else, it works. If 
> it's the same, it fails.
> Works in Mojarra.
> Please let me know if you need additional information! Thank you very much in 
> advance!



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

Reply via email to