Vineet Bhagchandani

Salesforce Certified Developer and Salesforce Evangelist

Apex:PanelBar in Visualforce

Apex:PanelBar is a component that contains a page area that includes one or more <apex:panelBarItem> tags that can expand when a user clicks the associated header. When an <apex:panelBarItem> is expanded, the header and the content of the item are displayed while the content of all other items are hidden. When another <apex:panelBarItem> is expanded, the content of the original item…

Apex: Toolbar in Visualforce

apex:toolbar is a stylized, horizontal toolbar that can contain any number of child components. By default, all child components are aligned to the left side of the toolbar. We can use an <apex:toolbarGroup> component to align one or more child components to the right. The toolbar is very helpful when your visualforce page contains multiple functionalities and…

Action Support in Visualforce

ActionSupport component adds AJAX support to other components in visualforce. It allows components to be refreshed asynchronously by calling the controller’s method when any event occurs (like click on button). It allows us to do partial page refresh asynchronously without refreshing  full page. In the example below we have two output text "Click To Increment!" and…

Action Function in Visualforce

ActionFunction component provides support for invoking controller action methods directly from JavaScript code using an AJAX request. Sometimes we require to have some processing before submitting the data to the server. This is the part where actionFunction comes into the picture. ActionFunction provides us with the functionality to call the javascript method, do some modifications in the…

Get Data From Visualforce Controller Extension Without SOQL Query

When a Visualforce page is loaded, the fields accessible to the page are based on the fields referenced in the Visualforce markup. We can use StandardController.addFields(List fieldNames)method which adds a reference to each field specified in fieldNames so that the controller can explicitly access those fields as well. This method should be called before a record has been loaded—typically,…