A standard Visualforce component that dynamically re-renders a Visualforce page to display changes to data in real time. You can use live controller anywhere you use Visualforce in Lightning Experience. When you have a Lightning page that contains both Lightning and Visualforce components, use live controller to ensure that your Visualforce page's data is up-to-date. With live controller, your Visualforce pages automatically refresh the way your Lightning components do with Lightning Data Service. You can only have one live controller per Visualforce page.
<apex:page standardController="Account"> <apex:liveController reRender="updateName"/> <apex:outputPanel id="updateName"> {!Account.name} </apex:outputPanel> {!Account.name} </apex:page>
Attribute Name | Attribute Type | Description | Required? | API Version | Access |
---|---|---|---|---|---|
action | ApexPages.Action | Invoked when live controller makes a server call to re-render data. Use the action named in this attribute to manually reset fields in your custom controller or extension. | No | 46.0 | global |
oncomplete | String | Invoked when the result of an AJAX update request completes on the client. | No | 45.0 | global |
records | String | Additional list of records to subscribe to on the page. | No | 45.0 | global |
reRender | Object | Takes a value equal to the ID of one or more Visualforce components that are redrawn on the same page when the live controller loads modified data for the page. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs.. | No | 44.0 | global |