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
Sam1980Sam1980 

Finding a component used in Visual force page

Have a Customer Portal where in one of the Visual force page some component is used.

I have the componenet/controller name, but not sure how to find it ?

Best Answer chosen by Sam1980
James LoghryJames Loghry
You can find the component in Setup->Develop->Components and look for your component name in that list.  Or you can download your project to the Eclipse IDE or MavensMate and look in the src/components directory.

Otherwise, if you're looking for where the code is called in your visualforce page, open up your visualforce page and look for <c:component_name />.

Otherwise, if you're looking for it in the HTML of your visualforce page, look for a specific HTML element that you know exists within your component and you should be able to find it.

Any of the above help?

All Answers

James LoghryJames Loghry
You can find the component in Setup->Develop->Components and look for your component name in that list.  Or you can download your project to the Eclipse IDE or MavensMate and look in the src/components directory.

Otherwise, if you're looking for where the code is called in your visualforce page, open up your visualforce page and look for <c:component_name />.

Otherwise, if you're looking for it in the HTML of your visualforce page, look for a specific HTML element that you know exists within your component and you should be able to find it.

Any of the above help?
This was selected as the best answer
kaustav goswamikaustav goswami
Hi,

If you have the component name. Then go to the code of the visualforce page and search with the name.

Consider the name of the component is 'myComponent'.

1. This is probably the easiest. Go to setup > develop > components. Click on the name of the component and you will get to see a button called "Where is this used?" Click this button and you will see a list of all the visualforce pages where that component has been used.

2. Go the visualforce page and search for the component name like "<c:myComponent". If the component is used in the visualforce page you will get the reference.

3. If you do not have access to the visual force page then take help of eclipse.

In eclipse create a project and download all the classes, pages, components, static resources and triggers. Go the search option (an icon that looks like a torch light will be present in the top). Enter the component name and you will get to see all the places where that component has been referred.

Thanks,
Kaustav