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 

Can SelectOption be used with attribute assignTo?

I have a component which has a selectList in, having an attribute of type String[] taking the selectoptions from the main page works fine to populate the list. I want to be able to add options to the list so I need access to the options in the code behind but I get errors when trying to use assignTo with it.

Can't have an attribute of LIST:System.SelectOption
Setter can't just take the list of strings to use, like the list does, without compile error.
Changing component controller to store a List<String> gives you a Visualforce on the setter method as its being given a List:System.SelectOption

Any ideas?