You need to sign in to do that
Don't have an account?
Luke@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?
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?