View difference between Paste ID: 381u40zd and VEDAjdDJ
SHOW: | | - or go back to the newest paste.
1
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
2
        	xmlns:xe="http://www.ibm.com/xsp/coreex">
3
         <xp:button value="Switch!" id="switchButton">
4
         	<xp:eventHandler event="onclick" submit="true"
5
         		refreshMode="partial" refreshId="dynamicCustomControl">
6
         		<xp:this.action><![CDATA[#{javascript:viewScope.controlName = 'cc_test2.xsp';
7
        getComponent('dynamicCustomControl').show(null)}]]></xp:this.action>
8
         	</xp:eventHandler></xp:button>
9
         <xe:dynamicContent id="dynamicCustomControl">
10
        		<xp:include id="customControlInluder">
11
        			<xp:this.pageName>
12
     <![CDATA[${javascript:viewScope.controlName||"cc_test1.xsp"}]]>
13
     </xp:this.pageName>
14
        		</xp:include>
15
         </xe:dynamicContent>
16
</xp:view>