I have a requirement where i need to create a page having many tabs as well as tabPanels. The number of tabs to be displayed is decided at run time. i tried using tabPanel inside repeat but it renders tabPanels again and again but not the tabs. Is there any way to do this using visualforce?
for eg: say i have three tabPanels:
tabPanel 1 :
tab1 tab2 tab3
this contains three tabs(say)
tabPanel 2 :
tab 1 tab 2
this contains two tabs(say)
etc.
again when next time i render the page, tabPanel 1 may have 4 tabs and also the page may have an added, tabPanel with multiple tabs.
Have you tried <apex:repeat/> component? You just need to hold the count of number of tabs and tabpanels in controller, refer them in specific <apex:repeat/> component and refresh the page (possibly ajax kind of refresh) .
Hi,
Have you tried <apex:repeat/> component? You just need to hold the count of number of tabs and tabpanels in controller, refer them in specific <apex:repeat/> component and refresh the page (possibly ajax kind of refresh) .
cheers..
yes doesnt work
this definitely doesn't (but should) work
the test tab renders, but not the other ones, of which in my testing should be 6 tabs.
This still does not work. It would be great to be able to do the following:
Any comments from Salesforce on this?
Thanks!
I am also facing the same issue. did u get any solution for this problem plz let me know
Hi,
You can go through this by using dynamic components.
https://success.salesforce.com/ideaView?id=08730000000l3gHAAQ
Please vote for the idea!