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
Luke@TWSLuke@TWS 

Accessing component attribute in custom controller

I have a custom VF component with a custom controller. I have an attribute in the component that I wish to access in my custom controller code. How would I go about doing this?
dchasmandchasman
You will need to use the assignTo functionality of apex:attribute to inject the attributes value into your controller via value binding - see the docs and examples for more info.
Luke@TWSLuke@TWS
Ah yes I see, cheers!