You need to sign in to do that
Don't have an account?
BDArnz
Input Text only refers to fields?
I thought the Input Text object was for referencing class variables instead of object fields.
This code seems to work OK since Service__c.Name is a field in my custom object called Service:
<apex:inputText value="{!Service__c.Name}" id="ReplyTo_Address"/>
This one fails:
<apex:inputText value="{!emailToAddress}" id="emailToAddress"/>
I have created the appropriate getter method in the controller but when I try to save this page I get the error:
Error: Read only property 'ServiceControllerExtension.emailToAddress' |
Here's the getter code from the controller extension:
public String getemailToAddress(){
emailToAddress = 'jbud@company.com';
return emailToAddress;
}
Any Ideas?
TehNrd
You also need set method to set the value from the page to the controller. Using a property in the controller would be even easier. Then you wouldn't need a get or set method.
Code:
BDArnz
That property method is MUCH easier! :smileyvery-happy: Thanks for your help!