You need to sign in to do that
Don't have an account?
Paulo Castro
selectCheckboxes - value property ???
Hi,
I want to use selectCheckboxes component, but I can't find wich kind of object the value property could have.
In the Visualforce documentation the example use a string array object as value, but it says I could assing an object. But what kind of object? Just string arrays?
I'm asking this because I want to implement something like an Order and Items, and I want to display these Items using checkboxes. So if the checkbox is marked it will create a record on Items object, and if it is unmarked it will delete this record on Items obeject. Is it possible?
Tnx.
Yes, string array, here is how i define a property to hold the selected values:
public String[] selectedObjects { get; set; } { selectedObjects = new LIst<string>(); }
In my page it looks like this
<apex:selectList value="{!selectedObjects}" title="Choose" multiselect="true" size="35"> <apex:selectOptions value="{!items}" /> </apex:selectList>