use of org.devgateway.toolkit.forms.wicket.providers.GenericChoiceProvider in project oc-explorer by devgateway.
the class EditColorIndicatorPairPage method onInitialize.
@Override
protected void onInitialize() {
super.onInitialize();
firstIndicator = new Select2ChoiceBootstrapFormComponent<String>("firstIndicator", new GenericChoiceProvider<String>(FlagsConstants.FLAGS_LIST));
firstIndicator.required();
editForm.add(firstIndicator);
secondIndicator = new Select2ChoiceBootstrapFormComponent<String>("secondIndicator", new GenericChoiceProvider<String>(FlagsConstants.FLAGS_LIST));
secondIndicator.required();
editForm.add(secondIndicator);
ColorPickerBootstrapFormComponent color = new ColorPickerBootstrapFormComponent("color");
color.required();
editForm.add(color);
editForm.add(new ColorIndicatorDistinctFormValidator());
editForm.add(new ColorIndicatorUniquePairFormValidator(compoundModel));
}
Aggregations