multicompositepanel not appearing properly in dialog | Community
Skip to main content
New Participant
December 14, 2017
Solved

multicompositepanel not appearing properly in dialog

  • December 14, 2017
  • 3 replies
  • 854 views

I have added multicompositepanel in one of the project

It is working fine with respect to data on ui.

but when i reopen the dialog , multicompositepanel is not able to retain the structure in dialog.

so editing existing content is not possible.

dialog config:

<menu

jcr:primaryType="cq:Widget"

title="Navigation Menu"

xtype="panel">

<items jcr:primaryType="cq:WidgetCollection">

<testimonials

jcr:primaryType="cq:Widget"

fieldDescription="Click to add Testimonials"

fieldLabel="Add Testimonials"

matchBaseName="false"

name="./testimonials"

width="500"

xtype="multicompositefield">

<fieldConfigs jcr:primaryType="cq:WidgetCollection">

<name

jcr:primaryType="cq:Widget"

fieldLabel="Name"

name="name"

width="300"

xtype="textfield"/>

<testimonialsDetails

jcr:primaryType="cq:Widget"

fieldDescription="Click + to add estimonials Details(maximum 2 links)"

fieldLabel="Testimonials Details"

name="testimonialsDetails"

title="Testimonials Details"

width="600"

xtype="multifield">

<fieldConfig

jcr:primaryType="nt:unstructured"

hideLabel="false"

xtype="multifieldpanel">

<items jcr:primaryType="cq:WidgetCollection">

<titleDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Enter title for testimonial"

fieldLabel="Title"

key="titleDetail"

width="3x100"

xtype="textfield"/>

<headerDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Enter header for testimonial"

fieldLabel="Header"

key="headerDetail"

width="300"

xtype="textfield"/>

<imageDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Select Image for testimonial"

fieldLabel="Image"

key="imageDetail"

width="300"

xtype="pathfield"/>

<descDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Enter Description for testimonial"

fieldLabel="Description"

key="descDetail"

width="500"

xtype="textfield"/>

</items>

</fieldConfig>

</testimonialsDetails>

</fieldConfigs>

</testimonials>

</items>

</menu>

let me know what else i have to add to make this work.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kiranc10446965

issue is sorted.

changed dialog structure and it worked.

3 replies

kiranc10446965AuthorAccepted solution
New Participant
December 15, 2017

issue is sorted.

changed dialog structure and it worked.

New Participant
December 15, 2017

AEM 6.1

smacdonald2008
New Participant
December 14, 2017

What version of AEM are you using. If using 6.2/6.3 - you should be looking at writing this in Granite - as discussed here: Creating a Granite/Coral 6.3 Multifield HTL component for Adobe Experience Manager