Posts

Showing posts from April, 2011

What Is Visualforce Tabs?

Tabs in vf page are used to display content like the way standard tabs do. Each tab do consist of its individual section, which is display some content. To create a tab like view, we use <apex:tabPanel> and <apex:tab> tags. Example code for Tabs in Visualforce <apex:page> <apex:tabPanel switchType="client"> <apex:tab label="Tab 1"> <!-- Content for Tab 1 --> </apex:tab> <apex:tab label="Tab 2"> <!-- Content for Tab 2 --> </apex:tab> <apex:tab label="Tab 3"> <!-- Content for Tab 3 --> </apex:tab> </apex:tabPanel> </apex:page> In this <apex:tabPanel> tag is used in which each <apex:tab> tag consist of information to be displayed in the tab.

Order of Execution in a Visualforce Page

In Visualforce, the order of execution refers to the sequence in which various components and actions are processed when a Visualforce page is loaded and rendered. Understanding this order is crucial for developers to control the behavior and appearance of their Visualforce pages effectively. Here's the typical order of execution: Component Initialization: First, any components defined in the Visualforce page are initialized. This includes standard components like <apex:page>, <apex:form>, and custom components. Controller Initialization: If the Visualforce page has a controller or controller extension associated with it, the constructor of the controller(s) is executed. This allows the controller to initialize any necessary data or perform any required setup operations. Getter Methods Execution: After the controller is initialized, getter methods defined in the controller are executed. Getter methods are responsible for providing data to the Visualforce page, typically...