3 Replies Latest reply on Feb 19, 2008 4:48 AM by Jiri Pejchal

    How to set content of rich:tab in java

    Jiri Pejchal Newbie

      Is this the right way to set content of a tab? I can set the label but not the content.

      HtmlTabPanel tabs = new HtmlTabPanel();
      Application application = FacesContext.getCurrentInstance().getApplication();

      List children = tabs.getChildren();

      HtmlTab newTab = new HtmlTab();

      newTab2.setLabel("Tab label");
      newTab2.setValue("tab content");

      children.add(newTab);