4 Replies Latest reply on Jan 15, 2009 9:51 AM by Ilya Shaikovsky

    generate datatable from java code

    Sascha Janz Master

      i want to generate a data table with java code.

      but i got some trouble adding the facets to the column

      HtmlDataTable table = new HtmlDataTable();
      table.setColumns(1);
      HtmlColumn col = new HtmlColumn();
      FacetTag header =new FacetTag();
      header.setName("header");
      HtmlOutputText text = new HtmlOutputText();
      text.setValue("SPALTE" );
      
      how can i add the facet to the column with text as child?