You need to sign in to do that
Don't have an account?
asd@as.asd
apex:function & apex:support
Hello
i want to know the differnce and use of of apex:function & apex:support
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hello
i want to know the differnce and use of of apex:function & apex:support
Hi,
Difference between Action Function and Action Support
ActionFunction : provides support for invoking controller action methods directly from JavaScript code using an AJAXrequest
Used when we need to perform similar action on varioud events. Een though you can use it in place of actionSupport as well where only event is related to only one control.
Example :
ActionSupport : A component that adds AJAX support to another component, allowing the component to be refreshed asynchronously by theserver when a particular event occurs, such as a button click or mouseover.
Used when we want to perform an action on a perticular eventof any control like onchange of any text box or picklist.
Example :
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
so which it better to use? or it is case to case basis? Thanks :-)
My general rule of thumb (and yes, this can change case-to-case)
<apex:actionFunction> = able to be called from other JavaScript functions on the page as well as Visualforce components
<apex:actionSupport> = only provides support for invoking controller action methods from other Visualforce components
I'll end up using actionFunction more often than not.
-Andy