Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 自定义多字段小部件中的RichText小部件编辑时未调用侦听器_Extjs_Aem - Fatal编程技术网

Extjs 自定义多字段小部件中的RichText小部件编辑时未调用侦听器

Extjs 自定义多字段小部件中的RichText小部件编辑时未调用侦听器,extjs,aem,Extjs,Aem,我正在尝试在AEM CQ5中创建一个组件,该组件将生成一个测验模块。我的要求是创建一个对话框,允许我创建多个问题,每个问题都有多个答案。我的对话框xml如下所示- <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/j

我正在尝试在AEM CQ5中创建一个组件,该组件将生成一个测验模块。我的要求是创建一个对话框,允许我创建多个问题,每个问题都有多个答案。我的对话框xml如下所示-

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="cq:Dialog"
    xtype="dialog">
    <items jcr:primaryType="cq:Widget"
        xtype="tabpanel">
        <items jcr:primaryType="cq:WidgetCollection">
            <categories 
                jcr:primaryType="cq:Panel"
                title="Questions & Answers">
                <items jcr:primaryType="cq:WidgetCollection">
                    <questions-answers
                        jcr:primaryType="cq:Widget"
                        title="Questions & Answers"
                        name="./qasegment"
                        xtype="dialogfieldset">
                            <items jcr:primaryType="cq:WidgetCollection">
                                <link
                                    jcr:primaryType="cq:Widget"
                                    fieldDescription="Click on Add item to add questions. Once question is added, click on Edit Answers to add answers and the destination URLs"
                                    name="./questionsAnswers"
                                    typeHint="String"
                                    xtype="multifield">                         
                                    <fieldConfig 
                                        jcr:primaryType="nt:unstructured"
                                        xtype="widgets.configurableQandAfield"/>
                                </link>
                            </items>
                    </questions-answers>
                </items>       
            </categories>
        </items>
    </items>
</jcr:root>
当我创建对话框时,它工作得非常顺利。但是当我编辑组件并打开对话框时,任何编辑都不会得到更新。这是因为没有调用任何侦听器来更新隐藏值。我尝试了所有的侦听器-更改、模糊、销毁、同步和推送。但是没有一个侦听器被调用


请帮帮我。谢谢

尝试覆盖多字段JS中的父方法processValue,并调用updateHidden方法init

例如:

    // private
    updateHidden: function() {
        this.hiddenField.setValue(this.getValue());
    },
    processValue: function(value) {        
        if ((value === undefined) || (value === null)) {
            value = "";
        }    
        // calling updateHidden() as change event not functioning for RTE widget
        this.updateHidden();
        return value;                  
    },
    // private
    updateHidden: function() {
        this.hiddenField.setValue(this.getValue());
    },
    processValue: function(value) {        
        if ((value === undefined) || (value === null)) {
            value = "";
        }    
        // calling updateHidden() as change event not functioning for RTE widget
        this.updateHidden();
        return value;                  
    },