Extending HtmlPanelGrid

Hey,

I'm trying to build a composite JSF component that actually only holds several other components (mainly HtmlInputText/HtmlOutputText),

Most of the things goes to encodeBegin which look something like:

public void encodeBegin(FacesContext context) throws IOException {

setColumns(2);

- create some HtmlOutputText components

getChildren().add(htmlComponent) (per component of coursE)

super.encodeBegin(context);

What bothers me is that all HtmlOutputText components gets rendered in the same row.

What could be the reason for that? I've explicitly set columns to 2, but this does not affect anything,

Any idea what am I doing wrong?

Thanks,

Asaf.

[730 byte] By [Troubya] at [2007-11-27 10:08:00]
# 1
The javadoc for HtmlPanelGrid says the following:By default, the rendererType property must be set to "javax.faces.Grid". This value can be changed by calling the setRendererType() method.Perhaps you should check that this happens in your case.
RaymondDeCampoa at 2007-7-13 0:44:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...