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
ArjunmcaArjunmca 

Binding list value to Tab Name

Hi,

 

I need to display list values as tab names. I dont want to hardcode the name of the tab. How can i do that.

 

<apex:tabPanel switchType="client" selectedTab="name2" id="theTabPanel">

          <apex:tab label="Programming" name="Programming" id="tabProgramming">

          </apex:tab>           

          <apex:tab label="HardWare" name="International" id="tabHardware">

          </apex:tab>           

         <apex:tab label="Bundles" name="Equipment" id="tabBundles">

         </apex:tab>

</apex:tabPanel>

 

//controller method

public List<String> getPackages()

{      

    List<string> strlist = new List<string>();      

   strlist.add('Programm');      

   strlist.add('International');      

   strlist.add('Equipment');

   return strlist;

}

 

Each list value to be binded to different tab. How can i do that.

 

Thanks.

 

 

sandeep@Salesforcesandeep@Salesforce

It can not be dynamic which can be binded with Controller

ArjunmcaArjunmca
Then how can i do that. I will get the values to the list. Then i have to
assign value to Tab.
Is there any way to do that.

--
Thanks,
Mallikarjun
2107752310