Why I'm getting this error I do have the method name called SelectedContact
, is that a required to thing to use getSelectedContact
?
Public List<Contact> SelectedContact()
{
return LoadContactByAccountId;
}
<apex:pageblock id="selectedContactList" title="Selected Contact">
<apex:pageblocktable id="selectedContactList" value="{!SelectedContact}" var="selContact">
<apex:column headervalue="Last Name">
<apex:outputfield value="{!selContact.LastName}">
</apex:outputfield></apex:column>
<apex:column headervalue="First Name">
<apex:outputfield value="{!selContact.FirstName}">
</apex:outputfield></apex:column>
<apex:column headervalue="Email">
<apex:outputfield value="{!selContact.Email}">
</apex:outputfield></apex:column>
<apex:column headervalue="Phone">
<apex:outputfield value="{!selContact.Phone}">
</apex:outputfield></apex:column>
</apex:pageblocktable>