在oneui 3.0.2中没有触发下拉菜单(在Firefox中)

时间:2015-11-12 17:46:20

标签: firefox xpages xpages-extlib

我使用了extlib中的dropDownButton,当我更改为OneUI 3.0.2时,它不起作用(从2.1开始,它工作正常)。

在firefox(31.8)中发生,而不是在(非常古老的)IE中。当我点击下拉条目时,Firebug在其控制台中显示以下错误:

TypeError:_9.getAttribute不是函数,

它指向... {return _6 [_9.getAttribute(" widgetId")];} ...在lib -extlib.dijit.OneUIv302Dialog& -extlib.dijit.OneUIv302Menu& @ Eya.js

这是一个(已知的)错误吗?

我的代码:

                                                <xe:dropDownButton
                                                    id="dropDownButton1">
                                                    <xe:this.treeNodes>
                                                        <xe:basicContainerNode
                                                            label="IAM">
                                                            <xe:this.children>
                                                                <xe:basicLeafNode
                                                                    submitValue="approve1" label="approve selected">
                                                                </xe:basicLeafNode>
                                                                <xe:basicLeafNode
                                                                    submitValue="reject0" label="reject selected">
                                                                </xe:basicLeafNode>
                                                            </xe:this.children>
                                                        </xe:basicContainerNode>
                                                    </xe:this.treeNodes>
                                                    <xp:eventHandler
                                                        event="onItemClick" submit="true"
                                                        refreshMode="complete">
                                                        <xe:this.action><![CDATA[#{javascript:submitIAMAction()}]]></xe:this.action>
                                                    </xp:eventHandler>
                                                </xe:dropDownButton>

2 个答案:

答案 0 :(得分:0)

我已经将扩展库DropDownButton与OneUI V3.0.2一起测试,没有任何麻烦。

enter image description here

更新&#34;服务器控制台上的输出&#34;:

enter image description here

我正在使用以下环境:

  • Firefox 42
  • Domino服务器 9.0.1FP4
  • 扩展程序库版本 9.0.1.v00_14_20150831-1301

您的Domino服务器和/或扩展库版本可能有问题吗?

尝试对您的环境进行一些更新。

答案 1 :(得分:0)

这听起来和我们遇到的问题一样。在我们的例子中,我认为如果你点击下拉选项中的实际文本,下拉条目仍然可以工作,单击“空格”将不起作用。

我们在OpenNTF上的ExtLib项目的缺陷列表中找到了一个解决方案,感谢 Serdar Basegmez http://extlib.openntf.org/main.nsf/project.xsp?r=project/XPages%20Extension%20Library/defects/0FFE08B1FC57FE6A86257D91004C156D

尝试一下: 将以下内容放在javascript库中。

if(dojo.isMozilla) dojo.addOnLoad(function() {
    dijit.registry.backupByNode=dijit.registry.byNode;
    dijit.registry.byNode=function(node) {
        if(node.getAttribute) {
            return dijit.registry.backupByNode(node);
        } else {
            return dijit.registry.backupByNode(node.parentNode);
        }
    }
});

然后添加您的主题:(将add添加为单个页面的资源)

<resources>
    <script src="/fixDropDownButton.js" clientSide="true"
        type="text/javascript"></script>
</resources>