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



Aug 2, 2011, 10:22 AM
21 Posts
topic has been resolvedResolved

Dynamicly loading custom control components

  • Category: Managed Beans in NSF
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: custom control beans
  • Replies: 2
I'm working on a xpage application which needs to load custom controls dynamically in a repeater. I've tried using the Include page option and adding the datacontext to pass values to the custom controls. This approach works as long as I define the pagename statically (aka "page.xsp"). 
 
When I start to read content from the var from the repeater I get the error that currentEntry , which is the name of my var, could not be references. I think this has something to do with the fact that the include page car only be generated on pageload (because of the jsf tree.. ? ). 
 
I then started to use the dynamic content Panel from the extension library. This approach doesn't work as well when I set the default facet name dynamically. I'm wondering if there is a way to generate a page out of dynamicly loaded custom controls in a repeater?
 

Aug 2, 2011, 4:47 PM
14 Posts
Re: Dynamicly loading custom control components
 I didn't try it with a repeat control but maybe this helps you
 http://www.hevelmann.de/2011/06/dynamic-load-xpages-custom-controls-with-partial-refresh/
Aug 3, 2011, 6:09 AM
21 Posts
Re: Dynamicly loading custom control components
Thanks for the tip. Yesterday after many hours of trying I noticed this class being mentioned in the extlib doc.. Let's see what I can do with this in another part of the project. Inside a repeat control this won't help me since I dont want to traverse the list twice , once for  finding out which controls I should load and second for the values etc...

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