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

    how to add ui:insert via backing bean

    Balaji Khandekar Newbie

      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