+ Start a Discussion
dipudipu 

How to repeat tabs under tab panel

I want to use <apex:repeat to repeat the tabs inside and tab panel.

The following block of code compiles correctly. The tab contents are available in the browser ( view source text). However none of the tabs are visible.

 

 

<apex:tabPanel id="idTabPanel" 
	   switchType="client" 
	   value="{!curTabSelection}"
	   inactiveTabClass="inactiveTab"
	   tabClass="activeTab" 
	   contentClass="tabContentClass" >

	<apex:repeat value="{!tabs}" var="aTab"> 
		<apex:tab id="idTab"  
			  label="{!aTab.Label}" 
			  name="{!aTab.Id}"
			  rendered="{! aTab.isEmpty == false }"
			  rerender="idErrorMsg, idTabPanel" 
			  ontabenter="onTabClickHandler('{!aTab.Id}');" 
			  oncomplete="onActionComplete();" >
			  
		    <c:RenderTab id="idTabBody" optionGroup="{!aTab}"/>
					
		</apex:tab>
	</apex:repeat>

</apex:tabPanel>

 

 

aballardaballard

Are you sure atab.isEmpty is returning false?

dipudipu

Yes it does return false. I also tried removing the rendered property.

The page actually contains the content of the tab, when I look at the view soruce text. Only the tabs are not shown.

JamalRidaJamalRida

Hello I would like to know if you were able to do the repeat for the Tabs, i have the same issue,

best regards,