core_st

dynamicContent xPages

May 7th, 2014
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
Add Comment
Please, Sign In to add comment