<?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:link escape="true" text="Load Dynamic Content Server side" id="link1"> <xp:eventHandler event="onclick" submit="true" refreshMode="partial"> <xp:this.action> <![CDATA[#{javascript:getComponent("dynC").show("key1")}]]> </xp:this.action> </xp:eventHandler> </xp:link> <xp:link escape="true" text="Load Dynamic Content Client side" id="link2"> <xp:eventHandler event="onclick" submit="false"> <xp:this.script><![CDATA[XSP.showContent("#{id:dynC}","key2")]]></xp:this.script> </xp:eventHandler> </xp:link> <xe:dynamicContent id="dynC" useHash="true"> <xp:this.facets> <xp:panel xp:key="key1">Content1</xp:panel> <xp:panel xp:key="key2">Content2</xp:panel> </xp:this.facets> </xe:dynamicContent> </xp:view>