Hi, In this post i am giving an example of <apex:actionRegion> usage in visualforce. it will use to achieve AJAX functionality to partial page refresh. Vf page-
public class ActionRegionCLS{
public String reqAccNumber{get;set;}
public Account accObj{get;set;}
public ActionRegionCLS(){
accObj = new Account();
}
public void fillRecord(){
if(reqAccNumber !=null && reqAccNumber !=''){
List<Account> accLst = new List<Account>();
accLst = [select id,Name,AccountNumber,Type,AnnualRevenue from Account where AccountNumber =:reqAccNumber];
if(accLst !=null && accLst.size()>0){
accObj = accLst[0];
}
else{
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.Info,' No Records found with this Account Number:'+reqAccNumber);
ApexPages.addMessage(myMsg);
accObj = null;
}
}
}
}
May i know the reason for using <apex:actionregion >. Do you have any element which makes AJAX call in that div?
In this post i am giving an example of <apex:actionRegion> usage in visualforce. it will use to achieve AJAX functionality to partial page refresh.
Vf page-
Controller- Releted Link- http://s18.salesforce.com/01I36000000M9jhEAC?setupid=CustomObjects (http://s18.salesforce.com/01I36000000M9jhEAC?setupid=CustomObjects)
Thanks
Rupal Kumar
http://mirketa.com