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
John Upton 8John Upton 8 

Create tabs on VF page based on child object's records

I wish to create tabs on my Visual Force page, each tab being based on a record in a child object. 
I have used the example in the URL below to create a simple controller extension, so that I can execute a loop in VF; however, if I try to use the following markup, all I get is 3 "hello"s. However, if I take out the 'apex:repeat', I get the single "hello" and the tab as expected.
Can anyone suggest what I am doing wrong / a different approach?
Thanks

<apex:page standardController="Account" extensions="DynamicAccountFieldsLister">
    <apex:tabPanel switchType="client" selectedTab="name2" id="theTabPanel">
        <apex:repeat value="{!editableFields}" var="f">
            hello
            <apex:tab label="tab" >
            </apex:tab>
        </apex:repeat>
    </apex:tabPanel> 
</apex:page>


https://developer.salesforce.com/docs/atlas.en-us.200.0.pages.meta/pages/pages_dynamic_vf_sample_standard.htm?search_text=loop