0 Replies Latest reply on Jan 5, 2011 10:12 AM by fengxiaofeng

    Dynamic include not work

    fengxiaofeng

      hello

           UIInclude java code is not work.

       

        HtmlTab tab = new HtmlTab();
        tab.setId("tab_"+menuItem.getData());
        tab.setLabel(menuItem.getValue()+"");

       

        UIInclude include = (UIInclude)FacesContext.getCurrentInstance().getApplication().createComponent(UIInclude.COMPONENT_TYPE);
        include.setId("include_"+menuItem.getData());
        include.setViewId("/test.xhtml");
        tab.getChildren().add(include);

       

        this.tabPanel.getChildren().add(tab);

       

      please see attachment!

       

      thanks for any reply!