You need to sign in to do that
Don't have an account?

Conversion Error setting value for checkboxes
Hi, I'm getting this error on my VF page after selecting some of the checkboxes: Conversion Error setting value 'Case Task' for '#{objectTypes}', .
And don't know why =S
On my VF Page I have:
<apex:selectCheckboxes value="{!objectTypes}">
<apex:selectOptions value="{!objectTypesOptions}"/>
</apex:selectCheckboxes>
And on my Controller, objectTypes is a List<String> and objectTypesOptions is a List<SelectOption>.
Any ideas?
Thanks in advance,
Orlando
Don't pay me atention. I found my mistake.
I wasn't initializating objectTypes list, I thought that declaring objectTypes like a property {get;set;} I didn't need to initialize it, but yes.
Regards,
Orlando
All Answers
Don't pay me atention. I found my mistake.
I wasn't initializating objectTypes list, I thought that declaring objectTypes like a property {get;set;} I didn't need to initialize it, but yes.
Regards,
Orlando
Hi Orlando,
I could really use your help. I am receiving a similar error when retrieving values from a multi select list. I keep reading posts about the need to initialize the list, but I keep getting an error. Here's what's in my controller:
Here's my VF:
I get a "Duplicate Variable" error in Eclipse when I try to initialize a list like:
I feel I'm overlooking something very basic. This little but crucial piece is keeping me from completing a much needed piece of functionality. Thanks in advance!
Hi,
Yes, the problem is you're declaring that list twice,
1 - public List<Id> productionNumbers { get; set; }
2 - List<Id> productionNumbers = new List<Id>();
So in your constructor controller, you need to initialize that list like this: productionNumbers = new List<Id>();
Regards,
Orlando
Thank you Orlando, that fixed my Conversion Error. I really appreciate your speedy reply.
Unfortunately, now I'm receiving a "Validation Error: Value is not valid" error. I have two mutli select lists that I'd like my users to be able to pass options back and forth (using jQuery). When I move values between the boxes and perform my desired action, I receive the Validation Error. I really don't know why it would give me this error, it was clear before that I was returning the desired values.
I know that I'm asking for more than help with my Conversion Error issue, but any assistance you could give would be greatly appreciated.
Here's my VF:
Here's my controller: