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 23, 2011, 9:18 PM
23 Posts

xPages and DXL import

  • Category: Custom JSF code (Eclipse IDE)
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags: Dynamic Design
  • Replies: 4
I have not been having any luck with my dynamic design injecting xsp source so I'm looking at another route.  I have a lotusscript agent that creates and xpage by importing dxl.  It kind of works but only after I open the database in designer and click build on the project.  is there a way to programmatically cause the database to build with an agent running on the server?
Feb 23, 2011, 9:43 PM
40 Posts
Re: xPages and DXL import
Not really (or not in a way you want to go after) ... the "stuff" that DDE has to compile the app is not included on the server. There might be ways around it if you are a Java/Eclipse/OSGI expert, but i wouldn't recommend spending the time on it.
 
I guess I am at a loss to try to understand what you are trying to do and why you want to inject XSP markup and not direct HTML markup into your design ?
Feb 24, 2011, 1:52 PM
23 Posts
Re: xPages and DXL import
I am working on a CMS that should allow the CM's to design their own HTML skin (stored in documents) for the presentation of the content.  The Admin/CM side will be oneUI but I don't want to limit the look of the end user side.   Well that is the basic idea I am just struggling to do this in xpages.  I think I'm going to look at the xpage agent technique next.  I really wish I could have got the injecting controls at run time working the way I wanted and I may revisit it.  I just could not seem to to inject an com.ibm.xsp.component.UIInclude and have it render it's content.  I'm not sure what i was missing.
Feb 24, 2011, 2:26 PM
40 Posts
Re: xPages and DXL import
If you want to give complete control over the rendered output of the XPage probably something like an XAgent is your only way to go. Otherwise you'll have to build some sort of basic framework and then have them produce css to style it how they want.  The later is how I have accomplished things like this in the past, giving them a framework, like page snippets that they can style how they want. I build each of the snippets as a separate page, and then give them the ability to configure a document that lets them import the snippets on to the main page (through xp:includes) the way they want.  Its not full control. but its far more control than i think most really want/need in an end user CMS....
Feb 28, 2011, 2:29 AM
9 Posts
Re: xPages and DXL import
If you want to do runtime injection, it isn't that hard. You just need to remember that you're going to inject a TREE, not just one block. (well, in 99% of cases, anyway.)
 
However, this is all going to work vastly better if you do it in Java. The best approach there is to go to OpenNTF.org, and get the XPages Extension Library source code. Then look for components like Tooltips or Dialogs.
 
It's a more complex issue than can be addressed in a single forum post. 

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