Instantly share code, notes, and snippets.

Embed
What would you like to do?
Modal causing (partial) refresh issue in Domino 10.0.1
<?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">
<xe:dialog
id="dialog1"
title="refresh issue">
<xp:panel id="dlgContentWrapper">
<xe:dialogContent id="dialogContent1">
Content in the dialog
</xe:dialogContent>
<xe:dialogButtonBar id="dialogButtonBar1">
<xp:button
value="close 2"
id="button3">
<xp:eventHandler
event="onclick"
submit="true"
refreshMode="partial"
refreshId="dlgContentWrapper">
<xp:this.action><![CDATA[#{javascript:getComponent("dialog1").hide()}]]></xp:this.action>
</xp:eventHandler>
</xp:button>
</xe:dialogButtonBar>
</xp:panel>
</xe:dialog>
<xp:button
value="show dialog"
id="button1">
<xp:eventHandler
event="onclick"
submit="false">
<xp:this.script><![CDATA[XSP.openDialog("#{id:dialog1}");]]></xp:this.script>
</xp:eventHandler>
</xp:button>
</xp:view>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment