Visualforce is the Force.com platform's component-based user interface framework. This article introduces Visualforce. It explains how to work with Visualforce by illustrating the primary areas of functionality, providing an overview of tags, and demonstrating how to use them
Visualforce is the component-based user interface framework for the Force.com platform. Visualforce boasts about 100 built-in components, and a mechanism whereby developers can create their own components.
Static tag | Dynamic tag |
1) Current page’s purpose | 1) Connected to controller |
2) Can’t connect to the controller | 2) Gives ability to connect |
3) Pre determined data for view | 3) Runtime determines values through the controller |
↓
Ownership :
Structure :
< Prefix: tag>
↓
XSD
Attribute value :
as parent tag but we can use after roottags
–> Setup → app setup → develop → pages → new
< /apex: page >
< /apex: page>
→ Singular label student → sales force (view)
→ Plural label students → tab
→ Object name, student → DB
→ API Name student _ _ c → force.com
Frequently Asked Salesforce Interview Questions & Answers
Comment in VF :
For understanding the code to know what task you write,
It creates a block in a page
< Apex: page block >
< h1> congratulations Ashok
: p
Congratulations this is your page,
Welcome :
< Apex: page block selection Item>
Thank you .
→ {!v40 20}
→ < h1> congrats {! 40 20}
Global: This means the method or variable can be used by any Apex code that has access to the class, not just the Apex code in the same application. This access modifier should be used for any method that needs to be referenced outside of the application, either in the SOAP API or by other Apex code. If you declare a method or variable as global, you must also declare the class that contains it as global.
It is a value that can be accessed across all the VF pages
Global variables:
Use global variables to reference general information about the current user and your organization on a page. Global variables must be referenced using Visualforce expression syntax to be evaluated, for example, {!$User.FirstName}.
It is a variable value that can be accessed across all the VF pages
→ All global variables are represented by $
Eg: & user
→
{1user first name } <|h1>
Check Out Salesforce Tutorials
Mindmajix offers different Salesforce certification training according to your desire with hands-on experience on Salesforce concepts
Name | Dates | |
---|---|---|
Salesforce Training | Oct 15 to Oct 30 | View Details |
Salesforce Training | Oct 19 to Nov 03 | View Details |
Salesforce Training | Oct 22 to Nov 06 | View Details |
Salesforce Training | Oct 26 to Nov 10 | View Details |
Arogyalokesh is a Technical Content Writer and manages content creation on various IT platforms at Mindmajix. He is dedicated to creating useful and engaging content on Salesforce, Blockchain, Docker, SQL Server, Tangle, Jira, and few other technologies. Get in touch with him on LinkedIn and Twitter.