6 Replies Latest reply on Jul 5, 2009 3:25 PM by nbelaevski

    problem on creating  HtmlModalPanel object dynamically

    orkun

      hello

      I would like to create HtmlModalPanel object dynamically in javabean as follows:

      But no panel seems to be created. Can you tell me why ?

      I did:

      List children = getControlPanel().getChildren(); // **** ///// (HtmlPanelGrid controlPanel )

      children.clear();

      HtmlModalPanel myPanel1 = new HtmlModalPanel();

      myPanel1.setWidth(500);
      myPanel1.setHeight(500);
      myPanel1.setId("dinamikPanelID");
      myPanel1.setKeepVisualState(true);

      HtmlOutputText outputText = new HtmlOutputText();
      outputText.setValue("Kapat");
      myPanel1.getFacets().put("header", outputText);

      myPanel1.getChildren().add(outputText);

      children.add(myPanel1);