function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sourav PSourav P 

what is the difference between Visuallforce Page & Visualforce Component?

Dear All, any body can plz explain the above difference, when we need to create a VF component? Are those two things related to each others ?
As i can create a VF page and make it work without the need of a VF component, what exactly it is ? Thanks
Best Answer chosen by Sourav P
Rowallim TechnologyRowallim Technology
Hello Sourav
 The basic difference is that  Pages are static, components can be dynamic. Basic use of component is to reuse the component in your visual force pages.Once component can be used in multiple pages, which saves time, - Reusability. Here is a page that highlights the topic: 
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_components_intro.htm

Hope this will help you.
Please mark it as best answer if your question is solved.
Regards
 

All Answers

Rowallim TechnologyRowallim Technology
Hello Sourav
 The basic difference is that  Pages are static, components can be dynamic. Basic use of component is to reuse the component in your visual force pages.Once component can be used in multiple pages, which saves time, - Reusability. Here is a page that highlights the topic: 
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_components_intro.htm

Hope this will help you.
Please mark it as best answer if your question is solved.
Regards
 
This was selected as the best answer
Edna StevenEdna Steven
People who are as eager to provide a hand as you are highly welcome. Everyone appreciates the wonderful principles you foster. basketball stars (https://basketball-stars.io)
Gary RalstonGary Ralston

Hello Sourav,

Visualforce page is a custom, tag-based markup language similar to Hypertext Markup Language (HTML). It has a user interface framework which is allow users to create several attractive and dynamic applications.
Visualforce component is a custom component that have functionality of custom logic, code and behaviour which wrapped inside <apex:component tag>. It is reusable piece of a visualforce page and it can be include other visualforce page as well.
For more information check https://arrify.com/visualforce-tab-in-salesforce/ , it describes how to create a Visualforce tab in Salesforce.