<apex:pageBlock title="Account Edit" >
<apex:pageBlockButtons >
<apex:commandButton value="save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection columns="1" title="Account Information" >
<apex:inputField value="{!acc.Name}" id="apexaccountautocomplete"/>
<apex:inputField value="{!Account.Phone}" id="apexaccountphoneautocomplete"/>
</apex:pageBlockSection>
<apex:pageBlockSection columns="1" title="Address Information">
<apex:inputField value="{!Account.BillingCity}" id="apexaccountcityautocomplete"/>
<apex:inputField value="{!Account.BillingPostalCode}" id="apexaccountcitycodeautocomplete"/>
<apex:inputText value="{!acc.Name}" required="true"/>
</apex:pageBlockSection>
</apex:pageBlock>
public class AutoCompleteDemoController{
public Account acc{
get{
system.debug('check'+acc.Name);
return acc;}
set{
}
}
public Account sample;
public Account noiseDictionary { get; set; }
public AutoCompleteDemoController(ApexPages.StandardController stdcontroller) {
}
public list<account> getAccountList(){
system.debug('sddd'+acc.Name);
return [SELECT Name FROM Account WHERE Name LIKE '%s%' limit 5];
}
public list<account> getAccountphoneList(){
return [select id,phone,Name,BillingPostalCode,BillingCity from account limit 5];
}
public list<account> getAccountcityList(){
return [select id,phone,Name,BillingPostalCode,BillingCity from account limit 5];
}
public list<account> getAccountcitycodeList(){
return [select id,phone,Name,BillingPostalCode,BillingCity from account limit 5];
}
}
I am not not to get the field value using getter and setter,i dont want to refresh my page in any point of time.need your help to get the value from vf page to controller.thanks in advance.