Page:
<apex:page showHeader="true" sidebar="true" controller="ComposeEmailController">
<apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'sf-bootstrap/css/bootstrap.min.css')}"/>
<apex:includeScript value="{!URLFOR($Resource.bootstrap, 'sf-bootstrap/js/bootstrap.min.js')}"/>
<apex:form styleClass="form-horizontal">
<div class="form-group">
<apex:selectList value="{!fromAddresses}" multiselect="false">
</apex:selectList>
</div>
</apex:form>
Controller:
public class ComposeEmailController {
String fromAddress{get; set;}
Case memberCase {get; set;}
Account account {get; set;}
Contact contact {get; set;}
public List<From_Email_Address__c> fromAddresses;
public ComposeEmailController() {
fromAddresses = [Select Id, Name, From_Address__c FROM From_Email_Address__c ORDER BY Name];
}
}
Error:
Unknown property 'ComposeEmailController.fromAddresses' (Line: 1, Column: -1)