Why isn't my BComponent hierarchy rendered?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Diez_Roggisch
Posted On:   Monday, May 27, 2002 10:26 AM

I created a tree of different BComponents, like this: --------------------- BComponent root = new BComponent(); TableView tv = new DefaultTableView(vc.getTemplateNode().cloneNode(true)); root.setView(tv); root.setName(name); root.addChild(new BText("Image URL:")); root.addChild(new BInput("text", name + "imageURL", image == null ? "" : image.getImageURL())); root.addChild(new BText("Hyperlink:")); root.addChild(new BInput("text", name + "hyperlinkURL", image == null ? "" : image.getHyperlinkURL())); root.addChild(new BText("Target:")); root.addChild(new   More>>

I created a tree of different BComponents, like this:


---------------------

			
BComponent root = new BComponent();
TableView tv = new DefaultTableView(vc.getTemplateNode().cloneNode(true));

root.setView(tv);
root.setName(name);

root.addChild(new BText("Image URL:"));
root.addChild(new BInput("text", name + "imageURL", image == null ? "" : image.getImageURL()));
root.addChild(new BText("Hyperlink:"));
root.addChild(new BInput("text", name + "hyperlinkURL", image == null ? "" : image.getHyperlinkURL()));
root.addChild(new BText("Target:"));
root.addChild(new BInput("text", name + "target", image == null ? "" : image.getTarget()));
root.addChild(new BText("ALT Text:"));
root.addChild(new BInput("text", name + "altText", image == null ? "" : image.getAltText()));

--------------


When rendering root, the childs don't get rendered at all.    <<Less
About | Sitemap | Contact