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 21, 2011, 9:56 PM
41 Posts

Actually, you CAN inject passthru

  • Category: Extension Library
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: Dynamic Design
  • Replies: 14
var bulletList:com.ibm.xsp.component.UIPassThroughTag = new com.ibm.xsp.component.UIPassThroughTag();
bulletList.setTag("ul");
bulletList.addAttribute("style", "list-style-type:none;"); 
var bullet:com.ibm.xsp.component.UIPassThroughTag = new com.ibm.xsp.component.UIPassThroughTag();
bullet.setTag("li"); 
bulletList.getChildren().add(bullet); 
var bulletLabel:com.ibm.xsp.component.UIPassThroughText = new com.ibm.xsp.component.UIPassThroughText();
bulletLabel.setText("Hello, world. It's me, Tim.");
bullet.getChildren().add(bulletLabel);
Feb 22, 2011, 1:45 PM
23 Posts
Re: Actually, you CAN inject passthru
very nice but I really hope there is an easier way...  I can accept taking the HTML string and splitting it on the <%includes> and looping that but I don't know about splitting every individual tag.  Especially since the users would very likely not enter well formed HTML chunks.  But I guess if I force well formed HTML I could build a dom tree and loop that.
 
 
Mar 30, 2011, 11:48 AM
57 Posts
Re: Actually, you CAN inject passthru
if you want to inject dynamic HTML
option one: (from answers above)
1. inject a "computed field" component in ViewRoot as previous post above with Java
2. set passthrough content as HTML
3. render HTML based on user input
 
option two:
1. put a computed field on xpages designer, set up a sessionscope variable which is an array which will be holding the values input by user, set up HTML template there, set computed field invisible
2. user input activate computed field, mix user input with HTML template from computed field, set computed field visible
 
option three:
1. set up an empty computed field in designer
2. use RPC service(example from Extension library) to generate html content for computed field

regards
wei

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