In our previous salesforce developer tutorial we have learned about visualforce actionpoller component with an example. In this Salesforce Visualforce tutorial we are going to learn about visualforce actionSupport Component.
Why we have to use actionsupport component ?
What action does actionsupport component takes ?
Where we have to place actionsupport component ?
Action Support component must be placed between <apex:form> and </apex:form> tags in the body of a visualforce page.
Let us see an example how ActionSupport component works.
Create new visualforce page as shown below.
Click on the link as shown below.
We have created controller that multiplies the result by two.
Visualforce pages using ActionSupport
Through this visualforce page we displaying the multiplication result. From above code when the text field receives Onfocus event timestwo action is triggered.