So at the moment I have a VisualForce Page that uses the following code:
<apex:page standardController="Contact" extensions="RelationshipTreeController">
<apex:repeat value="{!nameToRelationType}" var="name">
<apex:repeat value="{!nameToRelationType[name]}" var="relationType">
<apex:outputText value="{!name} ({!relationType})"/>
<br></br>
</apex:repeat>
</apex:repeat>
</apex:page>
And an extension controller with a Map<String, List<String>>
nameToRelationType.
The constructor will populate the map and the VF page lists the contents of the map using the nested <apex:repeat
s
What I would prefer though is to take those keys and just make a List<String>
with them. Then the first repeat in the VF page will iterate through that List and within there it will call a function passing in the current String from the List and the function will create the List<String>
that would have been the value in the map and return it. Sadly though I cannot call a function with a paramter using <apex:repeat
and I cannot use the <apex:param
since it cannot be a child of <apex:repeat
. So does anyone have any insight? I am pretty new to Salesforce