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
RustyboyRustyboy 

Modal VisualForce page with 2 controllers

I am looking for a way to load a modal VF page that has its own controller. I have seen a good post that allows you to embed a separate VF page into the existing one, but it relies on having only one controller.

Any ideas how to do this?
Best Answer chosen by Rustyboy
Ishwar ShindeIshwar Shinde
Hi,

Why can't you use VF component which can be embedded in VF page and have its own controller?

Thanks,
Ishwar Shinde

All Answers

Ishwar ShindeIshwar Shinde
Hi,

Why can't you use VF component which can be embedded in VF page and have its own controller?

Thanks,
Ishwar Shinde
This was selected as the best answer
RustyboyRustyboy
Thanks Ishwar

I think I have a solution that uses a component and controller, just not sure how to close the component window when done.

Any ideas?