so, say I have the following map:
public Map<String1, Map<String2, Object>> objectMap {get; set;}
public List<String> ListofString1Entries {get; set;}
public List<String> ListofString2Entries {get; set;}
and I want to render it in the following table:
String 1
String 2
Object.Name Object.Division
Object.Name Object.Division
Object.Name Object.Division
String 1
String 2
Object.Name Object.Division
Object.Name Object.Division
Object.Name Object.Division
(imagine that the above is a pageBlockTable).
I have the following visualforce code:
<apex:pageBlock mode="edit" id="results">
<apex:repeat value="{!ListofString1Entries}" var="i">
<div id="head" style ="height: 30px; background-color:#66CCFF;width:100%;text-align:center; font-size:20px;">{!i}</div>
<apex:pageBlockTable value="{!objectMap[i]}" var="d">
<apex:repeat value="{!ListofString2Entries}" var="j">
<apex:pageBlockTable value="{!d[j]}" var="c">
<apex:column style="width:10%">
<apex:facet name="header">
<apex:outputField value="Name" />
</apex:facet>
<apex:outputField value="{!c.Name}"/>
</apex:column>
<apex:column style="width:10%">
<apex:facet name="header">
<apex:outputField value="Name" />
</apex:facet>
<apex:outputField value="{!c.Name}"/>
</apex:column>
</apex:pageBlockTable>
</apex:repeat>
</apex:pageBlockTable>
</apex:repeat>
</apex:pageBlock>
I keep getting this error:
Unknown property 'String.Account' Error is in expression '{!d[j]}' in component in page testcontacts Error evaluating dynamic reference 'Account'
but I'm not referencing the account object at all... I'm referencing the User object.
Anyone have any ideas on this?