1 Reply Latest reply on Jan 9, 2012 1:22 AM by balaji_imagine

    how to add ui:insert via backing bean

    balaji_imagine

      Hi all,

       

      i am using RF 3.3.with facelet. In my application i am generating Tabs when user clicks on tree node. This works fine. but when a tab generates i want another xhtml page to view in that tab.

       

      Following code generates tab

       

                  FacesContext facesContext = FacesContext.getCurrentInstance();

                  Application application = facesContext.getApplication();           

                 

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

                  tab.setLabel("Tree");       

                  bean.getTabPanel().getChildren().add(tab);

       

      using this code tab generated even label also displays on tab. But how to display abc.xhtml page contents in tab.?

       

       

      -Balaji