SALESFORCE VISUALFORCE PAGE GUIDE FOR BEGINNERS
Hello, Friends, I am very happy to tell you all with this useful information. This post is only for Beginners. And for the experienced persons, this post helps them to refresh the things which they already know.
What is Visualforce:
Visuaforce is an interesting tool. If I were to define it, in a nutshell, I’d say “Visualforce is a markup language that allows you to describe the user interface components that live on your Force.com pages.” Visualforce pages consist of two elements: Visualforce markup, and a controller.
That is, you use the markup language to define the components that will live on your page and tie it to a controller (either standard or custom) to execute the logic behind those components. Visualforce lives on the server. So any code you write will be generated and run on the server.
Let’s start by understanding the need for view state. As you’ll learn in Chapter 3, a developer can either use a standard controller provided by the
Force.com platform, or add custom controller logic with a class written in Apex.
Navigate to Visualforce Pages Page:
Create New Visualforce Page:
Let us name it as “HelloworldPage”
Now start writing the code as shown in the below diagrams.
after writing the above code Click Save. Then, click on Preview. This opens a new webpage showing the result as shown in the following screenshot.
Now Add components as shown in the follwoing screenshot
we get the following output on the preview page. ( Just refresh it or it will get automatically refresh when you save your VF code )
In this section, we learnt how to add components to a program that is already created. And we have added some user interface components to the program created above. We added a block and a section in that block by using the above code.
Visualforce pages are webpages that belong to Salesforce. These webpages are created using a unique tag-based Mark-up language. It is similar to HTML but it’s primary use is to access, display and update the organization’s data. The page is accessed by using a URL similar to that of a traditional webserver page.
Each tag in visual force language corresponds to some user interface component like section of a page, a list view or a field of an object. Interestingly, it can be easily mixed up with HTML markup, CSS style and Java libraries, etc.
Stay tuned to salesforceupdates.com for more updates.
Thank you so much for reading my post. Feel free to ask doubts/Queries in the comment section below, and I’ll come again with an interesting topic about Salesforce So Please Share, Subscribe to our blog for the latest update.