This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Dec 13, 2011, 10:40 AM
38 Posts
topic has been resolvedResolved

Load XPage inside another XPage

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: xpages
  • Replies: 5
 Can we load XPage inside another XPage. Basically I want to load 2-3 XPages inside a main XPage. Also can it be based on computed value which loads those embedded XPages.
 
I am looking for something similar to IFRAME tag, but a bit more advanced.
Dec 13, 2011, 11:58 AM
261 Posts
Re: Load XPage inside another XPage
Why do you need to use XPages? Can't you just use custom controls?
Dec 13, 2011, 12:25 PM
38 Posts
Re: Load XPage inside another XPage
 @Fredrik: Thanks! Thats what i wanted.. I am slapping myself for not going through the designer before posting this on forum
@Mark: I have XPages which are view independently and wanted them to be used inside a main XPage. Also we can't compute a custom control's name (sure we can hide them). Or can we?
Dec 13, 2011, 1:23 PM
178 Posts
Re: Load XPage inside another XPage
 include control ?
Dec 14, 2011, 8:20 AM
261 Posts
Re: Load XPage inside another XPage
Naveen,
 
Actually you can if you use the "Include page" control: set the page to be included to "computed" and let the formula return the name of a custom control with an added extension of ".xsp".
 
Sample:
 
<xp:include pageName='${javascript:"cc_debug.xsp"}' id="include1"></xp:include> 
 
Mark

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal