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



Feb 18, 2011, 6:37 PM
40 Posts

Re: How to Create Design from dynamic content

  • Category: Extension Library
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: Dynamic Design
  • Replies: 14
 Could you then not use an xp:text tag with escape="false" and set the value to the html tags in the value like value="#{configDocument.leftNavFieldName}" (assuming the markup is stored in a field)...
Feb 19, 2011, 1:39 AM
23 Posts
Re: How to Create Design from dynamic content
Yeah, I tried that it just renders <xp:include pageName='testing.xsp'></xp:include> in the browser...
 
 
Feb 19, 2011, 2:26 PM
40 Posts
Re: How to Create Design from dynamic content
You can only use the xp:text to render HTML, not to inject XPages xp:tags into the source XML.  Remember that the XML "source" you place into the source pane of the XPage is interpreted and converted into a .java file, then compiled to a .class for execution on the server at design time. The XML tree is not re-parsed at run time. If you have finalized HTML, then you can use the xp:text...
 
You are going to have to "preplan" where you want to dynamically include content, then place the xp:include tags where you want to include content, then compute the which page to load at run time.  You can use the rendered and loaded attributes of the xp:include tag to turn on or off the rendering of a specific xp:include as well.  

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