I have a controller extension with the method GetAttributes that returns a list of Attribute objects, how can I iterate over them with apex:repeat?
Controller Method:
public List<Vitality_Check_Attribute__c> GetAttributes(){
List<Vitality_Check_Attribute__c> attr = [SELECT Name, Id, Assessment_Group_ID__c, Assessment_Identifier__c, Attribute_ID__c, Attribute_Identifier__c, Attribute_Value__c, Case__c, Source_Type__c FROM Vitality_Check_Attribute__c WHERE Case__c = :CaseID];
return attr;
}
Apex Code:
<apex:pageBlockSection title="Vitality Check Attributes">
<apex:pageBlock>
<apex:repeat value="{!GetAttributes}" var="att">
</apex:repeat>
</apex:pageBlock>
</apex:pageBlockSection>
This is the error I am getting:
" Error: Unknown property 'CaseStandardController.GetAttributes' "