Hi guys and girls ;-)

I'm writing a custom JSF component:

public class PortableHeaderRenderer extends HtmlGridRenderer {
...
}

So we see here, my component is a <h:panelGrid...>.
Now I would like to add some <h:column> as a child element to this component.

I think I have to do it like this to create a new one.
HtmlColumn col1 = new HtmlColumns();

After this, I add the col1 to the childs of my component:

public void encodeEnd(FacesContext ctx, UIComponent component) throws 
IOException {
 MyComponent comp = (MyComponent )component;
 HtmlColumn col1 = new HtmlColumns();
 header.getChildren().add(col1);
...
}

Now I would like to add some h:outputText to the column. So I create a new:
HtmlOutputText text = new HtmlOutputText();

My question now is:
How to add the "text" component to this column? The column does not have a list 
of children.
If I add the text to MyComponent "comp" it just ads it somewhere. But I'm not 
able to add it to the column...

Does anybody know how to do this?

Thanks!

Remo


-- 
Remo Liechti
Application Developer
Swisslog Warehouse and Distribution Solutions
 
Direct: +41 (0)62 837 4345
Mobile: +41 (0)76 329 8660
CH Fax: +41 (0)62 837 4197
Internet: www.swisslog.com
----------------------------------------------------------------
About Swisslog 
Swisslog is a global provider of logistic solutions for warehouses, 
distribution centers and hospitals. Swisslog's solutions increase their 
customers' flexibility, responsiveness, and quality of service, while 
minimizing logistics costs. 


This message may contain legally privileged or confidential information and is 
therefore addressed to the named persons only. The recipient should inform the 
sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of 
this message. The sender has activated an automatic virus scanning, but does 
not guarantee the virus free transmission of this message.

Reply via email to