/* * MultiselectController synchronizes the values of the hidden elements to the * SelectOption lists. */ public with sharing class MultiselectController { // SelectOption lists for public consumption public SelectOption[] leftOptions { get; set; } public SelectOption[] rightOptions { get; set; } // Parse &-separated values and labels from value and // put them in option private void setOptions(SelectOption[] options, String value) { options.clear(); String[] parts = value.split('&'); for (Integer i=0; i