Click Me Controller class: public class exampleCon { String uname; public String getUsername() { return uname; } public PageReference sayHello() { uname = UserInfo.getName(); return null; } public void setState(String n) { state = n; } public String getState() { return state; } public PageReference methodOne() { return null; } private String state = 'no'; } ActionSupport 1. other difference is Action function may be commonly used from different place on page while action support may only be used for particular single apex component. 2. ActionSupport is added to a particular component like button or outputtext and the event is controlled by the actionsupport not the component thus actionsupport help enhance the compononment itself by being part of the component itself. Example Code:   Controller Class: public class exampleCon { Integer count = 0; public PageReference incrementCounter() { count++; return null; } public Integer getCount() { return count; } } Kindly mark it as solved if it helps you. Best Regards, Rakesh.T  ", "upvoteCount": 1, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4LUsSAN", "datePublished": "2016-08-25T09:07:36.000Z", "author": { "@type": "Person", "name": "Ravi Kiran T", "url": "https://trailblazers.salesforce.com/profileView?u=0053000000CUQVOAA5", "affiliation": { "@type": "Organization", "name": "--" } } } ] } } Skip to main content
Hi All,

Q). what is the difference between actionFunction and actionSupport, Explain with funcionality?

can anyone reply for this post...

Thanks in advance..
답변 5개
0/9000