Visualforce is SFDC’s custom mark up language and represents the view in a Model-View-Controller software design pattern. Each Visualforce page is tied directly to a controller. These controllers, of course, manipulate the data in the model (database) and contain your application’s business rules.
Visualforce is made up of components (standard and custom.) These are architectural elements with occasional functional behaviors. Like HTML, there are tags such as tables, input and output fields, check boxes, buttons, custom drop downs, etc… (of course, you can also include good old HTML itself.) Let’s explore some of Visualforce’s standard components.
Some basic structural standard components:
- <apex:sectionHeader … >
<apex:pageblock … >
<apex:pageblocksection … >
As you can see in the code example below, each has attributes like “title=”, “columns=”, etc…
(note: this screenshot captures the use of SFDC’s handy Visualforce in-page editor)

For displaying the actual data notice the use of the outputfield component. The “value” attribute is used to set the desired object’s field.
- <apex:outputfield value=”{!contact.Name}”>
(note: SFDC’s syntax for data binding in Visualforce {!objectname.fieldname} )
And as you might expect, there’s an inputfield component for getting data into your objects. However, such fields need to be contained within a Visualforce “form” component. A cool thing to point out is that these standard components are meta-data aware. So if your field is defined as a SFDC “picklist,” the inputfield component will display it as a drop down.
How about a button:
- <apex:commandButton action=”{!submit}” value=”Submit”/>
When user hits Submit button, the page’s controller’s method called “getSubmit” will execute. Notice the implied “get” in the action attribute (“{!submit}”).
Include a list view of a related object:
- <apex:relatedList list=”Opportunities” title=”And customize the title” />
Show the default SFDC record detail layout:
- <apex:detail />
There’s a bunch more to check out — For a complete list of standard components and an ultimate reference for Visualforce see the Visualforce Developer’s Guide
In a future post we’ll look at some interaction between the Visualforce page and it’s controller.
Related posts:
- Adding a custom wizard feature in Salesforce Wizards generally consist of a user interface with step-by-step instructions....
- Creating a custom bulk edit screen Salesforce gives you some native bulk edit capabilities right out...
Related posts brought to you by Yet Another Related Posts Plugin.










Posted by Tom Burre on June 8, 2009 at 11:00 am

Hello!. Smart blog article. I attempted pull your blog and it appeared look at. We was pulling it up on a android phone. It might have been this cell though. I am quite postive… It may be something to into it. Anyways…. Keep up the intelligent work and We’ll stop by in the near future. The blog post was excellent. Bye Bye!!!
Just want to say your article is as astonishing. The clearness in your post is simply excellent and i could assume you’re an expert on this subject. Well with your permission let me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please keep up the enjoyable work.
Hello there! I simply wish to offer you a huge thumbs up for the excellent info you’ve got here on this post. I’ll be returning to your blog for more soon.