function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pramod KumarPramod Kumar 

How can i dynamically include another VF page in a tab.

public Component.Apex.TabPanel getMyTabs()
{
    Component.Apex.TabPanel myTabPanel = new Component.Apex.TabPanel();  
     for (integer i=0 ;i<menus.size();i++)  //just a sample, this could easily be a SOQL loop
     {
         Component.Apex.Tab myTab = new Component.Apex.Tab();
         myTab.Label = menus.get(i).name;
         myTab.name =  menus.get(i).name;
         myTab.switchtype = 'client';
         //Want to associate a VF page with this Tab so that if someone Click this tab  
         associated VF page content render in body part.
         myTab.style='font-family: Arial, Helvetica, sans-serif; color: #000000;  background-image: url(/dimg/portalTabActiveRight000099C2E4FE.gif)';
         myTabPanel.childComponents.add(myTab);
     }   
    return myTabPanel;
}

I Want to associate a particular VF page with each Tab so that if someone Click that tab
associated VF page content render in the body part.

menus list also contains target VF page related path which will be displayed when user clicks in respective tab.

I am not getting anything how to do this. Can someone help me plz

 

I Want to do it through apex:include.