You need to sign in to do that
Don't have an account?

actionFunction and actionSupport functionality
Hi All,
Q). what is the difference between actionFunction and actionSupport, Explain with funcionality?
can anyone reply for this post...
Thanks in advance..
Q). what is the difference between actionFunction and actionSupport, Explain with funcionality?
can anyone reply for this post...
Thanks in advance..
Below links can help you to understand the concept for these two apex tags.
http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
https://success.salesforce.com/answers?id=90630000000gzbQAAQ
Please mark this as solved, if it was able to solve your question.
All Answers
Difference between both:
1. Action function can call the controller method from java script.
2. Action support adds AJAX support to another visualforce component and then call the controller method.
for example:
Here action support adds AJAX to output panel, so once you click on output panel controller method will be called.
3. Action function cannot add AJAX support to another component. But from a particular component which has AJAX support(onclick, onblur etc) action function can be called to call the controller method.
Example:
Thanks
Rupal kumar
Below links can help you to understand the concept for these two apex tags.
http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
https://success.salesforce.com/answers?id=90630000000gzbQAAQ
Please mark this as solved, if it was able to solve your question.
Action function
1. Difference is in case of Action function we invoke AJAX using Java script while in case of Action support we may directly
invoke method from controller.
2. Actionfunction is a function that can be called by any component via onclick, ondbclick, onblur event of that component.
Example code:
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:
Kindly mark it as solved if it helps you.
Best Regards,
Rakesh.T
invoke method from controller
2. 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.
Please check below post for more detail and code
1) http://www.cloudforce4u.com/2013/06/difference-between-action-support-and.html
2) http://www.slideshare.net/AbdulMujebb/difference-betweenactionsupport
3) http://blog.biswajeetsamal.com/post/2015/10/09/difference-between-action-function-and-action-support/
Let us know if this will help you
If any of the answer was able to help you understand the concept, Can you please mark the thread as solved.