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

      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);