Tab with xtype= "mtmulticompositefield" | Community
Skip to main content
jond1978
New Participant
October 29, 2015
Solved

Tab with xtype= "mtmulticompositefield"

  • October 29, 2015
  • 5 replies
  • 1307 views

Hi,

This is an edited post (which had made earlier). 

Into an existing dialog (with multi Tabs) I have added a new tab as part of an enhancement.

The below code shows a part of the "multicompositefield" which have in the new Tab.

......................................................................
...................................................................... <fieldConfigs jcr:primaryType="cq:WidgetCollection" >             <media-type                     jcr:primaryType="cq:Widget"                     fieldLabel="Type"                     name="mytype"                     type="select"                     width="{Long}360"                     options = "/etc/acs-commons/lists/types/_jcr_content.list.json"                     xtype="selection"/>                              <media-path                     jcr:primaryType="cq:Widget"                     fieldLabel="Path"                     allowBlank="{Boolean}false"                     name="myurl"                     rootPath="/content/scaffold/acmelists"                     width="{Long}360"                     xtype="pathfield">             </media-path> </fieldConfigs>
......................................................................
......................................................................
    

The new tab is saving values as expected. But when i re-open this dialog, the values which I entered is not is not reflecting in the select box. But the select box is shrinking but i can see the value is selected in the select box.

Help me with pointers for where I went wrong.

Thanks

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 kautuk_sahni

Hi

As mentioned by Praveen, please try "autoWidth" property.

Reference Link:- https://docs.adobe.com/docs/en/cq/5-5/widgets-api/index.html?class=CQ.form.CompositeField

 

Thanks and Regards

Kautuk Sahni

5 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
November 4, 2015

Hi

As mentioned by Praveen, please try "autoWidth" property.

Reference Link:- https://docs.adobe.com/docs/en/cq/5-5/widgets-api/index.html?class=CQ.form.CompositeField

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
kautuk_sahni
Employee
November 4, 2015

Hi Scott

I thought sharing this with you.

Link:- http://blogs.adobe.com/contentmanagement/2011/12/01/custom-component-faq-component-simple/

//The widget is not part of the 5.4 release. The Multi composite field widget is essentially an extension to the CQ.form.CompositeField widget. And to register, you should have something similar to the following:

CQ.Ext.reg(“multicompositefield”, CQ.form.MultiCompositeField);

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
edubey
New Participant
November 4, 2015

Can you try to use autoWidth property, with true as value for select field

edubey
New Participant
October 30, 2015

Can you please share complete dialog.xml and screenshot of the tab

thanks

smacdonald2008
New Participant
October 30, 2015

Is mtmulticompositefield a custom xtype. I cannot find it in the standard widget docs:

https://docs.adobe.com/docs/en/cq/5-5/widgets-api/index.html