<apex: actionSupport> Component in Visualforce Page
The <apex:actionSupport> component is another important component that's used for adding AJAX support to another component. It allows the component to be refreshed asynchronously by the server when a particular event occurs.
Just like other components, the <apex:actionSupport> component also has the following attributes:
The action attribute is of type "ApexPages.Action" that is used for defining the action method invoked by the AJAX request to the server. The page simply refreshes when the user does not specify the action.
The disabled attribute is of type Boolean, which specifies whether the component is disabled or not. The defined action is not invoked when its value is set to true.
The disableDefault attribute is of type Boolean, which specifies whether the default browser processing should be skipped for the associated event or not. By default, its value is set to true.
The event attribute is of type String used to define the DOM event used for generating AJAX requests. Onclick, ondbclick, onkeyup, etc., are the possible values for this attribute.
The event attribute is of type String that is used for defining the id of that component which is in focus after completion of the AJAX request.
The event attribute is of type String that is used for defining an identifier. It allows the component to be referenced by another component on the page.
The immediate attribute is of type Boolean. If its value is true, the action associated with the component will happen immediately. The validation rules associated with the fields on the page will not be processed by the function.
The timeout attribute is of type Integer that defines the amount of time before an AJAX update request should time out.
The status attribute is of type string that defines the Id of an associated component that displays the status of an AJAX update request.
The reRender attribute is of type Object that is basically Id of one or more components which we need to redraw when the client receives the result of the action method.
Its value can be a single Id, comma-separated Id, or collection of Ids.
A Boolean attribute is used to specify whether the component is rendered on the page or not. By default, its value is set to true.
Let's take an example to understand how we can use the <apex:actionSupport> component in VF: