You need to sign in to do that
Don't have an account?
GoForceGo
I want to create a variable number of tabs with repeat statement. The code above doesn't work...Any work arounds anyone can think of?
Using Tabs inside repeat...
Code:
<apex:page Controller="testController"> <apex:tabPanel switchType="ajax" id="theTabPanel"> <apex:repeat value="{!stringList}" var="astring" id="theRepeat"> <apex:tab label="{!astring}"> </apex:tab> </apex:repeat> </apex:tabPanel> </apex:page>
Code:
public class testController { String[] ss; public String[] getStringList() { return ss; } public testController() { this.ss = new String[]{'a', 'b', 'c'}; } }
I want to create a variable number of tabs with repeat statement. The code above doesn't work...Any work arounds anyone can think of?
The problem is that most of the code is duplication across tabs - hassles in maintainence - in one case I have listed 15 tabs.
I was hoping I could use a repeat statement to just use one tab tag and have the system duplicate it.
https://success.salesforce.com/ideaView?id=08730000000l3gHAAQ
Please vote for the idea!