public void onSubmit(AjaxRequestTarget target, Form form) {
String value = newKeyword.getInput();
String lang = langChoice.getInput();
String vocab = vocabTextField.getInput();
KeywordInfo keyword = new Keyword(value);
if (lang != null && !"".equals(lang.trim())) {
keyword.setLanguage(lang);
}
if (vocab != null && !"".equals(vocab.trim())) {
keyword.setVocabulary(vocab);
}
List choiceList = choices.getChoices();
choiceList.add(keyword);
choices.setChoices(choiceList);