CQ5 AEM-多场板不';t从crx中删除节点

CQ5 AEM-多场板不';t从crx中删除节点,aem,Aem,我需要创建一个组件(比如componentA),其目的是允许用户添加数量可变的组件(从componentB和componentC中选择)。所以componentA就像一个包含其他组件的parsys 我正在使用创建一个组件对话框,其中包含用户控制的字段数。大概是这样的: 问题是,当我试图消除直接从componentA对话框中添加的一个元素时:该元素实际上已从对话框中消除,但它实际上仍保留在CRX中。 我的CRX类似于: 成分a 组件ason_0 组件ason_1 如果我用“右键单击并删除

我需要创建一个组件(比如componentA),其目的是允许用户添加数量可变的组件(从componentB和componentC中选择)。所以componentA就像一个包含其他组件的parsys

我正在使用创建一个组件对话框,其中包含用户控制的字段数。大概是这样的:

问题是,当我试图消除直接从componentA对话框中添加的一个元素时:该元素实际上已从对话框中消除,但它实际上仍保留在CRX中。 我的CRX类似于:

  • 成分a
    • 组件ason_0
    • 组件ason_1
如果我用“右键单击并删除”来删除组件(componentASon_0或componentASon_1),它将正常工作

有什么建议吗

下面是与组件a相关的对话框片段:



如果您能提供一段对话框和多字段代码,我们将更容易为您提供帮助。我想您需要编写一个侦听器,从页面的:jcr content节点下删除相应的组件。当您单击红色的“删除”图标时,必须调用此侦听器,这意味着您可能需要扩展提供的默认multifield.js。不确定是否有更简单的解决方法,对不起,我可以要求您在创建错误报告吗?
<tabMain
                    jcr:primaryType="cq:Widget"
                    title="myPanelTitle"
                    xtype="panel">
                <items jcr:primaryType="cq:WidgetCollection">
                    <settings jcr:primaryType="cq:Widget"
                              fieldLabel="Payment Settings"
                              fieldDescription="Click the '+' to add a new block"
                              name="./settings"
                              xtype="multifield">
                        <fieldConfig
                                jcr:primaryType="cq:Widget"
                                xtype="multifieldpanel">
                            <items jcr:primaryType="cq:WidgetCollection">

                                <component
                                        jcr:primaryType="nt:unstructured"
                                        defaultValue="Choose a component"
                                        fieldLabel="Component"
                                        type="select"
                                        value=""
                                        key="componentType"
                                        xtype="selection">
                                    <options jcr:primaryType="cq:WidgetCollection">
                                        <componentB
                                                jcr:primaryType="nt:unstructured"
                                                text="ComponentB"
                                                value="/apps/project/components/commons/componentB"/>
                                        <componentC
                                                jcr:primaryType="nt:unstructured"
                                                text="ComponentC"
                                                value="/apps/project/components/commons/componentC"/>
                                    </options>
                                </component>
                            </items>
                        </fieldConfig>
                    </settings>
                </items>
            </tabMain>