How many controllers can be used in a visual force page?

How many controllers can be used in a visual force page?

You can have the two controller functionality in one visualforce page by using standard controller and extension.

Can we have more than one standard controller?

Is it possible to use multiple standard controller in a VF page.. Pradeep, I believe you are incorrect. As long as you are willing to do the initialization of the Standard Controllers object yourself instead of relying on the fields in the Page, this should be no problem.

What is the use of extension in Visualforce page?

Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user. A controller extension is an Apex class that extends the functionality of a standard or custom controller.

How to have two controller functionality in one Visualforce page?

You can have the two controller functionality in one visualforce page by using standard controller and extension. So in extension you can mention the name of multiple controller from which you want to access the functionality of these controller .

Can you use multiple standard controllers in a VF page?

No, It is not possible to use multiple standard controllers in a VF page. We can inherit one standard controller at a time otherwise it will give error because we generally pass a record id of the Standard Object in URL to get all the details of that record on the VF page.

Is it possible to have multiple controllers on the same page?

In short, you can use the ApexPages classes yourself for access to their methods. Note that you could also have the illusion of multiple controllers for the same page by using Components behind the scenes. Best, Steve.

How to create custom objects in Visualforce page?

How you would want to show the data also matters eg: I am using standard objects here. you can change the objects to custom as required If you want to show the data in 2 separate tables I would suggest wrapper class : simple and sweet Check the code below to see if this can be something useful/you want to do