throw new RuntimeException(
"style \"autocomplete\" but there are no possible answers. Looked for answerConcepts and answerClasses attributes, and answers for concept "
+ concept.getConceptId());
}
if ("true".equals(parameters.get("selectMulti"))) {
valueWidget = new DynamicAutocompleteWidget(conceptAnswers, cptClasses);
}
else {
valueWidget = new ConceptSearchAutocompleteWidget(conceptAnswers, cptClasses);
}
} else if (parameters.get("answerDrugs") != null) {