3 Replies Latest reply on Sep 16, 2008 9:07 AM by Nick Belaevski

    Adding content to richfaces tabs dynamically

    Yaniv David Newbie

      Hello,

      I'm trying to add content to a dynamically created tab.

      I'm able to create the tab and set the label:

      HtmlTab tab = (HtmlTab)application.createComponent(HtmlTab.COMPONENT_TYPE);
      


      but I don't know how to add content to it.

      I have also tried adding an include tag under the tab:

      Include includeTag = new Include();
      includeTag.setId("include1");
      includeTag.setViewId("snippet.xhtml");
      
      tab.getChildren().add(includeTag);
      


      but again nothing appears in the content.

      Please help,
      Thanks in advance,
      Yaniv.