3

我目前正在使用 ExtLib 的 autoLoad 函数与 Ext.Window 和 Ext.tabPanel 结合将网页打开到弹出对话框中。如何在 XPages 中使用 dojo 实现这一点?

这是我想要实现的目标:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
    <xp:button value="Label" id="button1">
        <xp:eventHandler event="onclick" submit="true"
            refreshMode="partial" refreshId="dialog1" execMode="partial">
            <xp:this.action><![CDATA[#{javascript:getComponent("dialog1").show();}]]></xp:this.action>
        </xp:eventHandler>
    </xp:button>
    <xe:dialog id="dialog1" href="http://www.google.com" style="width: 400px; height: 400px;">
    </xe:dialog>
</xp:view>
4

1 回答 1

4

Dojo 对话框有一个 href 属性,您将其设置为要加载的页面的 url。该文档在标题“使用 HREF 属性的外部对话内容”下解释了这一点。

3 个点击链接到您需要的所有内容。

于 2012-04-12T23:54:02.297 回答