It is often useful to setup a “Multi-Select Datum” in a LiveSite component, but how do you write the Java external to receive this array of parameters?
The following code snippet from Raj Shekhawat shows you how:
//LiveSite returns Multiple select values in the form of ArrayList object
//Searchproperties is my parameter name
ArrayList selectedProperties= (ArrayList) context.getParameters().get("SearchProperties");
String selectedValues = "";
Iterator propertiesIterator = selectedProperties.iterator();
while (propertiesIterator.hasNext()) {
selectedValues += propertiesIterator.next();
}