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
Mrunali GaonkarMrunali Gaonkar 

Component and controller communication

hi,
 i moved some part of code of v page to component.i accesed same controller that used in vpage in component on Case object..all command buttons exist on vpage only.. only some portion of vpage getting reused ,hence i want to move this into component.. bt not able to create a link between all together..should i create a new controller for this?? plzz help.. thank you..
PratikPratik (Salesforce Developers) 
Hi Mrunali,

Is it the case that your controller logic and the component code will be reused in different VF pages?
If you can make the component as generic component that can be used in any vf page then its good to go for Component.
Please let me know your inputs.

Thanks,
Pratik