String typesString = ((String) acceptedTypes).trim();
if (!typesString.startsWith("[")) {
typesString = "[" + typesString + "]";
}
acceptedTypes = new JSONCollection(typesString);
} catch (JSONException e) {
throw new FacesException(e);
}
}
addOption("acceptedTypes", acceptedTypes);