1 Reply Latest reply on Sep 21, 2008 2:15 PM by maurice_how

    Creating Table on the fly.

    maurice_how

      HtmlDataTable tempTable = new HtmlDataTable();
      HtmlColumn tempColumn = new HtmlColumn();
      tempTable.getChildren().add(tempColumn);

      Any ideas why is the table rendering the column?

      I been spending a whole day on this. Thanks. =)

        • 1. Re: Creating Table on the fly.
          maurice_how

          dropTargetPanel = accountPanels.get(i);
          dropTargetPanel.setId("accPanel" + strAccountID);
          dropTargetPanel.setHeader("ACCOUNT " + i);

          dataTable = new HtmlDataTable();
          column = new HtmlColumn();
          oText = new HtmlOutputText();
          oText.setValue("Testing 123");
          column.getChildren().add(oText);
          dataTable.getChildren().add(column);
          dropTargetPanel.getChildren().add(dataTable); //Wont render table
          dropTargetPanel.getChildren().add(oText);//Able to render otext.

          May i know why ? thanks