Advertisement
Guest User

Untitled

a guest
Feb 13th, 2013
1,005
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.77 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement