+ Start a Discussion
learn_cloudsflearn_cloudsf 

VF components

what are visualforce components? why do we use them.

 
Swaraj Behera 7Swaraj Behera 7
Hi,
Please refer below links-
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_comp_cust_using.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_component.htm

Thanks,
Swaraj Behera
 
learn_cloudsflearn_cloudsf
Can anyone explain in simple terms and not links. Thanks.
NagendraNagendra (Salesforce Developers) 
Hi learn_cloudsf,

Component:It's a piece of apex code that can be used for reusability purpose.

Visualforce Component:Visualforce components are page-centric and most of the work is done on the server. 

Use of Component:If you want any repeated section for many pages so instead of creating each and every page with same copy paste code just create one component and use for other pages that will be more useful.

   It's like we need a specific common portion for all visual force page then we can go for component, it shows how you are reusing  your code.

You can also use lightning components in visual force page.

For more information check with below link: For limitations check with below link: Number of components in visual force:Here is the link which provides the detailed description of visualforce components and their usage in salesforce. Kindly mark this post as solved if the information help's so that it gets removed from the unanswered queue and becomes a proper solution which results in helping others who are really in need of it.

Best Regards,
Nagendra.P