No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Best Practices for <apex:panelbar>
- Adding a Collection of Child <apex:panelBarItem> Components to an <apex:panelBar> Component
- An <apex:panelBar> component can only have <apex:panelBarItem> child components. Sometimes, though, you want to add a collection
of child components. For example, you may want to add an item for
each contact associated with an account. You can do this by wrapping <apex:panelBarItem> in an <apex:repeat> component, as follows:
1swfobject.registerObject("clippy.codeblock-0", "9");<apex:page standardController="account"> 2 <apex:panelBar > 3 <apex:repeat value="{!account.contacts}" var="c"> 4 <apex:panelBarItem label="{!c.firstname}">one</apex:panelBarItem> 5 </apex:repeat> 6 </apex:panelBar> 7</apex:page>