You need to sign in to do that
Don't have an account?
ggaop
How to reference custom controller fields in VisualForce pages...
I need to reference a custom controller extension field in my VisualForce page. How do I do this?
This is what I have
<apex:page standardController="MyAccount__c" extensions="MyController">
<apex:pageBlock title="Error Messages">
<apex:outputText > {!getMessages} </apex:outputText>
</apex:pageBlock>
</apex:page>
In MyController class
public String getMessages() {
...
}
I get an error that getMessages is not part of MyAccount__c
Thanks,
J
So close!
remove "get" from the merge field in your VF page.
This might be more obvious if you wrote your getter as a property (but the way you wrote it is just fine).