target.add(schemaForm);
}
});
final AutoCompleteTextField mandatoryCondition = new AutoCompleteTextField("mandatoryCondition") {
private static final long serialVersionUID = -2428903969518079100L;
@Override
protected Iterator<String> getChoices(String input) {
List<String> choices = new ArrayList<String>();
if (Strings.isEmpty(input)) {
choices = Collections.emptyList();
return choices.iterator();
}
if ("true".startsWith(input.toLowerCase())) {
choices.add("true");
} else if ("false".startsWith(input.toLowerCase())) {
choices.add("false");
}
return choices.iterator();
}
};
mandatoryCondition.add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
private static final long serialVersionUID = -1107858522700306810L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {