No Enrique, it's not the point. I am creating a vector of these
components and I am using FacesContext over vector. I think the
problem is about HtmlDataTable component, any ideas please...
On 12/8/05, Enrique Medina <[EMAIL PROTECTED]> wrote:
> Try not to create the components through the "new" mechanism, but using
> FacesContext.getApplication.createComponent...
>
> 2005/12/8, Onur Tokan < [EMAIL PROTECTED]>:
> > Hi,
> >
> > I have a problem about creating dynamic HtmlDataTable component. The
> > following code renders only the column's facets. NOT the CONTENTS...
> > Thanks...
> >
> > HtmlDataTable dataTable = new HtmlDataTable();
> > for (int i = 1; i <= 10 i++)
> > {
> > UIColumn column = new UIColumn();
> > HtmlOutputText header = new HtmlOutputText();
> > header.setValue("Column Header"+i);
> > column.setHeader(header);
> > for (int j = 1; j <= 100 j++)
> > {
> > HtmlOutputText rowText = new HtmlOutputText();
> > rowText.setValue("Row:"+j+"Column:"+i);
> > column.getChildren().add(rowText);
> > }
> > dataTable.getChildren().add(column);
> >
> > }
> > return dataTable;
> >
>
>