How to load html file into Dojo dialog in XPages

I am currently using the ExtLib autoLoad function in conjunction with Ext.Window and Ext.tabPanel to open a web page in a pop-up dialog box. How can I achieve this with dojo in XPages?

Here is what I am trying to achieve:

<?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>
+3
source share
1 answer

The Dojo dialog box has a href property that you specify for the URL of the page you want to load. The documentation explains that under the heading Content is an external dialog using the HREF attribute . "

The first 3 hits refers to everything you need.

+4
source

All Articles