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

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

Its basically that what wrong:


{code:java}
<update id="testDialog:testDialog">
            <![CDATA[<form id="testDialog:testDialog:dialogForm" 
name="testDialog:testDialog:dialogForm" method="post" 
action="/test.xhtml?jfwid=nfsowt97v" 
enctype="application/x-www-form-urlencoded"><div 
id="testDialog:testDialog:dialogForm:dialog" class="ui-dialog ui-widget 
ui-widget-content ui-corner-all ui-shadow ui-hidden-container" 
style="display:none"><div class="ui-dialog-titlebar ui-widget-header 
ui-helper-clearfix ui-corner-top"><span 
id="testDialog:testDialog:dialogForm:dialog_title" 
class="ui-dialog-title"></span></div><div class="ui-dialog-content 
ui-widget-content" 
id="testDialog:testDialog:dialogForm:dialog_content"></div></div><script 
id="testDialog:testDialog:dialogForm:dialog_s" 
type="text/javascript">PrimeFaces.cw("Dialog","testDialog:testDialog",{id:"testDialog:testDialog:dialogForm:dialog",modal:true,fitViewport:true});</script><input
 type="hidden" name="testDialog:testDialog:dialogForm_SUBMIT" value="1" 
/></form>]]></update>
{code}

the updateid does not match the content


> 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