So, given the following controller snippet and VF page snippet...
public Map<String, Region__c> divisionaddresses {get; set;}
public List<String> allDivisions {get; set;}
public filladdresses()
{
Region__c temp = new Region__c();
for(String div: allDivisions)
{
temp = [SELECT ID, name, Zip_Code__c, Street_Address__c, State__c FROM Region__c][0];
divisionaddresses.put(div, temp);
}
}
<apex:pageBlock mode="edit" id="results">
<apex:repeat value="{!allDivisions}" var="i">
<div id="head" style ="height: 20px; background-color:#66CCFF;width:100%;text-align:center; font-size:15px; font-weight:bold;">
{!i}
<apex:outputfield value="{!divisionaddresses[i].Street_Address__c}"/>
{!divisionaddresses[i].Zip_Code__c}
{!divisionaddresses[i].State__c}
</div>
Why wouldn't the name, zip code, and streetaddress be rendering in the visualforce page. (allDivisions does in fact have values in it, so that's not it). Is there another way to dereference these objects?