Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xp:view xmlns:xp="http://www.ibm.com/xsp/core"
- xmlns:xe="http://www.ibm.com/xsp/coreex">
- <xp:button value="Switch!" id="switchButton">
- <xp:eventHandler event="onclick" submit="true"
- refreshMode="partial" refreshId="dynamicCustomControl">
- <xp:this.action><![CDATA[#{javascript:viewScope.controlName = 'cc_test2.xsp';
- getComponent('dynamicCustomControl').show(null)}]]></xp:this.action>
- </xp:eventHandler></xp:button>
- <xe:dynamicContent id="dynamicCustomControl">
- <xp:include id="customControlInluder">
- <xp:this.pageName>
- <![CDATA[${javascript:viewScope.controlName||"cc_test1.xsp"}]]>
- </xp:this.pageName>
- </xp:include>
- </xe:dynamicContent>
- </xp:view>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement